File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ if(CPP-NETLIB_BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS)
31
31
message (STATUS "Linking boost testing libs dynamically..." )
32
32
set (CPP-NETLIB_BUILD_SHARED_LIBS ON )
33
33
set (BUILD_SHARED_LIBS ON )
34
- add_definitions (-DBOOST_TEST_DYN_LINK)
35
34
else ()
36
35
set (CPP-NETLIB_BUILD_SHARED_LIBS OFF )
37
36
set (BUILD_SHARED_LIBS OFF )
@@ -40,8 +39,12 @@ endif()
40
39
# Always use Boost's shared libraries.
41
40
set (Boost_USE_STATIC_LIBS OFF )
42
41
42
+ # We need this for all tests to use the dynamic version.
43
+ add_definitions (-DBOOST_TEST_DYN_LINK)
44
+
43
45
# Always use multi-threaded Boost libraries.
44
46
set (Boost_USE_MULTI_THREADED ON )
47
+
45
48
find_package ( Boost 1.57.0
46
49
REQUIRED unit_test_framework system regex date_time thread filesystem
47
50
program_options chrono atomic )
You can’t perform that action at this time.
0 commit comments