We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c834e47 commit f2c7a72Copy full SHA for f2c7a72
CMakeLists.txt
@@ -5,7 +5,17 @@
5
6
cmake_minimum_required(VERSION 2.8)
7
project(CPP-NETLIB)
8
-set(Boost_USE_STATIC_LIBS ON)
+
9
+option (BOOST_DYN_LINK
10
+ "Build the project using dynamic linking for the boost testing libs"
11
+ OFF)
12
+if (BOOST_DYN_LINK)
13
+ message ("Linking boost testing libs dynamically...")
14
+ add_definitions(-DBOOST_TEST_DYN_LINK)
15
+elseif (BOOST_DYN_LINK)
16
+ set(Boost_USE_STATIC_LIBS ON)
17
+endif(BOOST_DYN_LINK)
18
19
set(Boost_USE_MULTI_THREADED ON)
20
find_package( Boost 1.45.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options chrono )
21
find_package( OpenSSL )
0 commit comments