CMake: Allow linking Boost dynamically

Make Boost_USE_STATIC_LIBS an CMake option, ON by default.
This commit is contained in:
Paweł Bylica 2017-08-21 20:42:06 +02:00
parent fa53494626
commit 0dc73913e1
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF

View File

@ -43,7 +43,7 @@ find_program(CTEST_COMMAND ctest)
## use multithreaded boost libraries, with -mt suffix
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_LIBS ON)
option(Boost_USE_STATIC_LIBS "Link Boost statically" ON)
find_package(Boost 1.54.0 QUIET REQUIRED COMPONENTS regex filesystem unit_test_framework program_options)