Link Boost statically only when requested

Fixes #2261
This commit is contained in:
MarkusTeufelberger
2017-12-02 22:47:12 +01:00
committed by Nikolaos D. Bougalis
parent 593a53253c
commit 0c22e0262d

View File

@@ -337,7 +337,10 @@ macro(use_boost)
set(BOOST_ROOT $ENV{CLANG_BOOST_ROOT})
endif()
set(Boost_USE_STATIC_LIBS on)
if (static)
set(Boost_USE_STATIC_LIBS on)
endif()
set(Boost_USE_MULTITHREADED on)
set(Boost_USE_STATIC_RUNTIME off)
if(MSVC)