From 5a006c6b6d70df6947f5da88c8b483e5e730b842 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 16 Oct 2023 23:50:01 +0200 Subject: [PATCH] Use CMake `option()` correctly --- libpkg/CMakeLists.txt | 2 +- librepomgr/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libpkg/CMakeLists.txt b/libpkg/CMakeLists.txt index 6a87dbb..50bd03f 100644 --- a/libpkg/CMakeLists.txt +++ b/libpkg/CMakeLists.txt @@ -83,7 +83,7 @@ set_property(TARGET libarchive PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${LibArch use_target(TARGET_NAME libarchive) # find boost libraries (required by lmdb-safe's integration with reflective-rapidjson) -option(BOOST_STATIC_LINKAGE "${STATIC_LINKAGE}" "link statically against Boost (instead of dynamically)") +option(BOOST_STATIC_LINKAGE "link statically against Boost (instead of dynamically)" "${STATIC_LINKAGE}") set(Boost_USE_MULTITHREADED ON) if (BOOST_STATIC_LINKAGE) set(Boost_USE_STATIC_LIBS ON) diff --git a/librepomgr/CMakeLists.txt b/librepomgr/CMakeLists.txt index d6ffb5e..8f421dd 100644 --- a/librepomgr/CMakeLists.txt +++ b/librepomgr/CMakeLists.txt @@ -88,7 +88,7 @@ find_package(passwordfile${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED) use_password_file() # find boost libraries -option(BOOST_STATIC_LINKAGE "${STATIC_LINKAGE}" "link statically against Boost (instead of dynamically)") +option(BOOST_STATIC_LINKAGE "link statically against Boost (instead of dynamically)" "${STATIC_LINKAGE}") set(Boost_USE_MULTITHREADED ON) if (BOOST_STATIC_LINKAGE) set(Boost_USE_STATIC_LIBS ON) @@ -97,7 +97,7 @@ set(BOOST_ARGS "REQUIRED;COMPONENTS;system;filesystem;iostreams") use_package(TARGET_NAME Boost::system PACKAGE_NAME Boost PACKAGE_ARGS "${BOOST_ARGS}") use_package(TARGET_NAME Boost::filesystem PACKAGE_NAME Boost PACKAGE_ARGS "${BOOST_ARGS}") use_package(TARGET_NAME Boost::iostreams PACKAGE_NAME Boost PACKAGE_ARGS "${BOOST_ARGS}") -option(BOOST_ASIO_IO_URING ON "enable use of io_uring") +option(BOOST_ASIO_IO_URING "enable use of io_uring" ON) if (BOOST_ASIO_IO_URING) message(STATUS "Using io_uring") list(APPEND META_PUBLIC_COMPILE_DEFINITIONS BOOST_ASIO_HAS_IO_URING BOOST_ASIO_DISABLE_EPOLL)