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
This commit is contained in:
committed by
Eberhard Gräther
parent
ce1d5c579d
commit
c0a0e4335a
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user