From b3c7d6380944a150555598c316cfa8d2af7f0215 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Mon, 22 Sep 2014 18:21:52 +0200 Subject: [PATCH] Let ENABLE_TESTS enable/disable also the new Boost.Tests. --- CMakeModules/BoostTestTargets.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeModules/BoostTestTargets.cmake b/CMakeModules/BoostTestTargets.cmake index 2d4e4f94..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() @@ -88,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() -- 2.39.5