From c0a0e4335ae9e4a0e6734779ff1d9e7572d7562b Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 19 Nov 2019 14:56:52 +0100 Subject: [PATCH] build: Make Boost_USE_STATIC_LIBS a cache variable (#759) Like this we can overwrite it's value from the commandline via `-DBoost_USE_STATIC_LIBS=OFF`. Linux distributions will prefer this. Regards https://github.com/CoatiSoftware/Sourcetrail/issues/758 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70f8c337..dd1645a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,7 @@ endif() # Boost ------------------------------------------------------------------------ set(Boost_USE_MULTITHREAD ON) -set(Boost_USE_STATIC_LIBS ON) +set(Boost_USE_STATIC_LIBS ON CACHE BOOL) set(Boost_USE_STATIC_RUNTIME OFF) find_package(Boost 1.68 COMPONENTS system program_options filesystem date_time REQUIRED)