Skip to content

Commit

Permalink
Link boost statically only when requested
Browse files Browse the repository at this point in the history
Fixes #2261
  • Loading branch information
MarkusTeufelberger authored and mellery451 committed Dec 20, 2017
1 parent 9f1cff2 commit 9330297
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Builds/CMake/CMakeFuncs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9330297

Please sign in to comment.