disable BOOST_TEST_DYN_LINK if Boost_USE_STATIC_LIBS
This commit is contained in:
parent
98b83b7208
commit
fe39d0fd10
@ -233,7 +233,7 @@ include_directories(SYSTEM ${OSMIUM_INCLUDE_DIRS})
|
||||
|
||||
|
||||
find_package(Boost 1.49.0 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
||||
if(NOT WIN32)
|
||||
if(NOT WIN32 AND NOT Boost_USE_STATIC_LIBS)
|
||||
add_definitions(-DBOOST_TEST_DYN_LINK)
|
||||
endif()
|
||||
add_definitions(-DBOOST_SPIRIT_USE_PHOENIX_V3)
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user