From 36446c66ace7a46e36662fbbb8b2af5a40ca0918 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 14 Feb 2022 18:15:20 +0300 Subject: [PATCH] Choose static boost libs in package mode only --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e331e23e..d380fdb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,11 +36,14 @@ if(PSEMEK_UBSAN) list(APPEND CMAKE_CXX_FLAGS -fsanitize=undefined) endif() -set(Boost_USE_STATIC_LIBS ON) - get_directory_property(PSEMEK_PARENT_DIRECTORY PARENT_DIRECTORY) add_subdirectory(package) + +if(PSEMEK_PACKAGE_MODE) + set(Boost_USE_STATIC_LIBS ON) +endif() + add_subdirectory(tools) add_subdirectory(libs)