Skip to content

Commit 0dc7391

Browse files
committed
CMake: Allow linking Boost dynamically
Make Boost_USE_STATIC_LIBS an CMake option, ON by default.
1 parent fa53494 commit 0dc7391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/EthDependencies.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ find_program(CTEST_COMMAND ctest)
4343

4444
## use multithreaded boost libraries, with -mt suffix
4545
set(Boost_USE_MULTITHREADED ON)
46-
set(Boost_USE_STATIC_LIBS ON)
46+
option(Boost_USE_STATIC_LIBS "Link Boost statically" ON)
4747

4848
find_package(Boost 1.54.0 QUIET REQUIRED COMPONENTS regex filesystem unit_test_framework program_options)
4949

0 commit comments

Comments
 (0)