From f4017ee5d8d82394aeac2c1a8f31dc475f4268a1 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 2 Sep 2024 19:34:55 +0300 Subject: [PATCH] Rename BOOST_IOSTREAMS_TARGET_ZSTD to BOOST_IOSTREAMS_ZSTD_TARGET --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee7b1abd5..f57391139 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)