From 5d76383a2d74e87bd5b3905a174cdd037548cf06 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Dec 2019 02:32:29 +0300 Subject: common.cmake: auto-set Boost_* variables --- common.cmake | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/common.cmake b/common.cmake index 2d9f7e0..1617a2c 100644 --- a/common.cmake +++ b/common.cmake @@ -78,15 +78,20 @@ if(parent_directory) set(default_value OFF) endif() -option(CC_BEST_PRACTICES "Apply useful compilation options" "${default_value}") -option(CC_STATIC_RUNTIME "Link the runtime statically" "${default_value}") -option(CC_STRIP_SYMBOLS "Strip debug symbols" "${default_value}") +option(CC_BEST_PRACTICES "Apply generally useful compilation options" "${default_value}") +option(CC_STATIC_RUNTIME "Link the runtime statically" "${default_value}") +#option(CC_STATIC_BOOST "Use the static Boost libraries" "${default_value}") +option(CC_STRIP_SYMBOLS "Strip debug symbols" "${default_value}") set(CC_CXX_STANDARD "14" CACHE STRING "C++ standard version") -message(STATUS "Best practices: ${CC_BEST_PRACTICES}") -message(STATUS "Static runtime: ${CC_STATIC_RUNTIME}") -message(STATUS "Strip symbols: ${CC_STRIP_SYMBOLS}") -message(STATUS "C++ standard: ${CC_CXX_STANDARD}") +option(Boost_USE_STATIC_LIBS "Use the static Boost libraries" "${default_value}") +option(Boost_USE_STATIC_RUNTIME "Use Boost libraries linked to the runtime statically" "${CC_STATIC_RUNTIME}") + +message(STATUS "C++ standard: ${CC_CXX_STANDARD}") +message(STATUS "Best practices: ${CC_BEST_PRACTICES}") +message(STATUS "Use the static Boost libraries: ${Boost_USE_STATIC_LIBS}") +message(STATUS "Link the runtime statically: ${CC_STATIC_RUNTIME}") +message(STATUS "Strip symbols: ${CC_STRIP_SYMBOLS}") # C++ standard version: -- cgit v1.2.3