X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=CMakeModules%2FBoostTestTargets.cmake;h=a858cfa681a1b2c032ffd026a273bd9990c412df;hb=d2e0c58ffb455b9934aa57280ceafa65dbc570f1;hp=a74a55040d28a257679f775d79287d1e31c6c95f;hpb=55f18574aa5a99806751646ac14112bb46aad8f3;p=simgear.git diff --git a/CMakeModules/BoostTestTargets.cmake b/CMakeModules/BoostTestTargets.cmake index a74a5504..a858cfa6 100644 --- a/CMakeModules/BoostTestTargets.cmake +++ b/CMakeModules/BoostTestTargets.cmake @@ -51,15 +51,15 @@ if("${Boost_VERSION}0" LESS "1034000") "NOTE: boost::test-based targets and tests cannot " "be added: boost >= 1.34.0 required but not found. " "(found: '${Boost_VERSION}'; want >=103400) ") - if(BUILD_TESTING) + if(ENABLE_TESTS) message(FATAL_ERROR ${_shared_msg} - "You may disable BUILD_TESTING to continue without the " + "You may disable ENABLE_TESTS to continue without the " "tests.") else() message(STATUS ${_shared_msg} - "BUILD_TESTING disabled, so continuing anyway.") + "ENABLE_TESTS disabled, so continuing anyway.") endif() endif() @@ -77,9 +77,7 @@ if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000") if(Boost_USE_STATIC_LIBS) set(_boostConfig "BoostTestTargetsStatic.h") else() - if(NOT APPLE) - set(_boostConfig "BoostTestTargetsDynamic.h") - endif() + set(_boostConfig "BoostTestTargetsDynamic.h") endif() endif() get_filename_component(_moddir ${CMAKE_CURRENT_LIST_FILE} PATH) @@ -90,7 +88,7 @@ if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000") endif() function(add_boost_test _name) - if(NOT BUILD_TESTING) + if(NOT ENABLE_TESTS) return() endif()