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:
Michael Vetter
2019-12-16 15:53:57 +01:00
committed by Eberhard Graether
parent 21f2625d9e
commit a89097a556
+1 -1
View File
@@ -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)