Skip to content

Commit f6c7ee6

Browse files
committed
Use the dynamic version of Boost.Test always.
1 parent 198dd07 commit f6c7ee6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ if(CPP-NETLIB_BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS)
3131
message (STATUS "Linking boost testing libs dynamically...")
3232
set(CPP-NETLIB_BUILD_SHARED_LIBS ON)
3333
set(BUILD_SHARED_LIBS ON)
34-
add_definitions(-DBOOST_TEST_DYN_LINK)
3534
else()
3635
set(CPP-NETLIB_BUILD_SHARED_LIBS OFF)
3736
set(BUILD_SHARED_LIBS OFF)
@@ -40,8 +39,12 @@ endif()
4039
# Always use Boost's shared libraries.
4140
set(Boost_USE_STATIC_LIBS OFF)
4241

42+
# We need this for all tests to use the dynamic version.
43+
add_definitions(-DBOOST_TEST_DYN_LINK)
44+
4345
# Always use multi-threaded Boost libraries.
4446
set(Boost_USE_MULTI_THREADED ON)
47+
4548
find_package( Boost 1.57.0
4649
REQUIRED unit_test_framework system regex date_time thread filesystem
4750
program_options chrono atomic )

0 commit comments

Comments
 (0)