We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 198dd07 commit f6c7ee6Copy full SHA for f6c7ee6
CMakeLists.txt
@@ -31,7 +31,6 @@ if(CPP-NETLIB_BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS)
31
message (STATUS "Linking boost testing libs dynamically...")
32
set(CPP-NETLIB_BUILD_SHARED_LIBS ON)
33
set(BUILD_SHARED_LIBS ON)
34
- add_definitions(-DBOOST_TEST_DYN_LINK)
35
else()
36
set(CPP-NETLIB_BUILD_SHARED_LIBS OFF)
37
set(BUILD_SHARED_LIBS OFF)
@@ -40,8 +39,12 @@ endif()
40
39
# Always use Boost's shared libraries.
41
set(Boost_USE_STATIC_LIBS OFF)
42
+# We need this for all tests to use the dynamic version.
43
+add_definitions(-DBOOST_TEST_DYN_LINK)
44
+
45
# Always use multi-threaded Boost libraries.
46
set(Boost_USE_MULTI_THREADED ON)
47
48
find_package( Boost 1.57.0
49
REQUIRED unit_test_framework system regex date_time thread filesystem
50
program_options chrono atomic )
0 commit comments