Skip to content

Commit f2c7a72

Browse files
committed
add
1 parent c834e47 commit f2c7a72

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55

66
cmake_minimum_required(VERSION 2.8)
77
project(CPP-NETLIB)
8-
set(Boost_USE_STATIC_LIBS ON)
8+
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+
919
set(Boost_USE_MULTI_THREADED ON)
1020
find_package( Boost 1.45.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options chrono )
1121
find_package( OpenSSL )

0 commit comments

Comments
 (0)