Skip to content

Commit dd2d96c

Browse files
committed
Do not try to link boost test libs dynamically for this test
1 parent 29d9bea commit dd2d96c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

libs/mime/test/CMakeLists.txt

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
include_directories(${CPP-NETLIB_SOURCE_DIR})
22
find_package ( Boost 1.41.0 COMPONENTS unit_test_framework )
3-
set ( Boost_USE_STATIC_LIBS ON )
3+
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+
414
set ( Boost_USE_MULTITHREADED ON )
515

616
if ( Boost_FOUND )

0 commit comments

Comments
 (0)