We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29d9bea commit dd2d96cCopy full SHA for dd2d96c
libs/mime/test/CMakeLists.txt
@@ -1,6 +1,16 @@
1
include_directories(${CPP-NETLIB_SOURCE_DIR})
2
find_package ( Boost 1.41.0 COMPONENTS unit_test_framework )
3
-set ( Boost_USE_STATIC_LIBS ON )
+
4
+option (BOOST_DYN_LINK
5
+ "Build the project using dynamic linking for the boost test libs"
6
+ OFF)
7
+if (BOOST_DYN_LINK)
8
+ message ("Do not try to link boost test libs dynamically for this test...")
9
+ remove_definitions(-DBOOST_TEST_DYN_LINK)
10
+elseif (BOOST_DYN_LINK)
11
+ set(Boost_USE_STATIC_LIBS ON)
12
+endif(BOOST_DYN_LINK)
13
14
set ( Boost_USE_MULTITHREADED ON )
15
16
if ( Boost_FOUND )
0 commit comments