disable BOOST_TEST_DYN_LINK if Boost_USE_STATIC_LIBS

This commit is contained in:
Dane Springmeyer
2016-05-20 00:03:37 -04:00
parent 98b83b7208
commit fe39d0fd10
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ set(AllBoostLibrariesExceptUnitTest ${Boost_LIBRARIES})
find_package(Boost 1.49.0 REQUIRED COMPONENTS unit_test_framework)
if(NOT WIN32)
if(NOT WIN32 AND NOT Boost_USE_STATIC_LIBS)
add_definitions(-DBOOST_TEST_DYN_LINK)
endif()