Skip to content

Commit

Permalink
Rename BOOST_IOSTREAMS_TARGET_ZSTD to BOOST_IOSTREAMS_ZSTD_TARGET
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Sep 2, 2024
1 parent 641c8fd commit f4017ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ set(BOOST_IOSTREAMS_ZSTD_TARGET_VALUES
"zstd::libzstd_static"
)

set(BOOST_IOSTREAMS_TARGET_ZSTD "zstd::libzstd_shared" CACHE STRING "Target name for Zstd")
set(BOOST_IOSTREAMS_ZSTD_TARGET "zstd::libzstd_shared" CACHE STRING "Target name for Zstd")

# Error checking for BOOST_IOSTREAMS_TARGET_ZSTD
if(NOT BOOST_IOSTREAMS_TARGET_ZSTD IN_LIST BOOST_IOSTREAMS_ZSTD_TARGET_VALUES)
message(FATAL_ERROR "Invalid value for BOOST_IOSTREAMS_TARGET_ZSTD. Allowed values are: ${BOOST_IOSTREAMS_ZSTD_TARGET_VALUES}")
# Error checking for BOOST_IOSTREAMS_ZSTD_TARGET
if(NOT BOOST_IOSTREAMS_ZSTD_TARGET IN_LIST BOOST_IOSTREAMS_ZSTD_TARGET_VALUES)
message(FATAL_ERROR "Invalid value for BOOST_IOSTREAMS_ZSTD_TARGET. Allowed values are: ${BOOST_IOSTREAMS_ZSTD_TARGET_VALUES}")
endif()

boost_iostreams_option(BOOST_IOSTREAMS_ENABLE_ZLIB "Boost.Iostreams: Enable ZLIB support" ZLIB "" ZLIB_FOUND ZLIB::ZLIB src/zlib.cpp src/gzip.cpp)
boost_iostreams_option(BOOST_IOSTREAMS_ENABLE_BZIP2 "Boost.Iostreams: Enable BZip2 support" BZip2 "" BZIP2_FOUND BZip2::BZip2 src/bzip2.cpp)
boost_iostreams_option(BOOST_IOSTREAMS_ENABLE_LZMA "Boost.Iostreams: Enable LZMA support" LibLZMA "" LIBLZMA_FOUND LibLZMA::LibLZMA src/lzma.cpp)
boost_iostreams_option(BOOST_IOSTREAMS_ENABLE_ZSTD "Boost.Iostreams: Enable Zstd support" zstd "1.0" zstd_FOUND ${BOOST_IOSTREAMS_TARGET_ZSTD} src/zstd.cpp)
boost_iostreams_option(BOOST_IOSTREAMS_ENABLE_ZSTD "Boost.Iostreams: Enable Zstd support" zstd "1.0" zstd_FOUND ${BOOST_IOSTREAMS_ZSTD_TARGET} src/zstd.cpp)

include(CheckCXXSourceCompiles)

Expand Down

0 comments on commit f4017ee

Please sign in to comment.