aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/common.cmake
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-09 02:32:29 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-09 03:41:42 +0300
commit5d76383a2d74e87bd5b3905a174cdd037548cf06 (patch)
treee71dae023f3be8ae0cfaa7ba43136414ac2a64dc /common.cmake
parentupdate common.cmake (diff)
downloadcmake-common-5d76383a2d74e87bd5b3905a174cdd037548cf06.tar.gz
cmake-common-5d76383a2d74e87bd5b3905a174cdd037548cf06.zip
common.cmake: auto-set Boost_* variables
Diffstat (limited to 'common.cmake')
-rw-r--r--common.cmake19
1 files 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: