Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6c7ee6

Browse files
committed
Use the dynamic version of Boost.Test always.
1 parent198dd07 commitf6c7ee6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ if(CPP-NETLIB_BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS)
3131
message (STATUS"Linking boost testing libs dynamically...")
3232
set(CPP-NETLIB_BUILD_SHARED_LIBSON)
3333
set(BUILD_SHARED_LIBSON)
34-
add_definitions(-DBOOST_TEST_DYN_LINK)
3534
else()
3635
set(CPP-NETLIB_BUILD_SHARED_LIBSOFF)
3736
set(BUILD_SHARED_LIBSOFF)
@@ -40,8 +39,12 @@ endif()
4039
# Always use Boost's shared libraries.
4140
set(Boost_USE_STATIC_LIBSOFF)
4241

42+
# We need this for all tests to use the dynamic version.
43+
add_definitions(-DBOOST_TEST_DYN_LINK)
44+
4345
# Always use multi-threaded Boost libraries.
4446
set(Boost_USE_MULTI_THREADEDON)
47+
4548
find_package(Boost1.57.0
4649
REQUIREDunit_test_frameworksystemregexdate_timethreadfilesystem
4750
program_optionschronoatomic )

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp