summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>2019-12-09 18:02:47 +0100
committerMarcus Müller <marcus@hostalia.de>2019-12-19 18:20:22 +0100
commitb6e36158da979a4b016d3b0cb89de5f74f764e3e (patch)
treef897f0ddbe7879bc040c7d69bfaaefbea7713c2a /cmake/Modules
parent33db846ff87dc67a3ba3465bcdb31232cee9fe6b (diff)
GnuradioConfig.cmake.in: honour OOT ENABLE_TESTING if it set, use default if it not
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/GnuradioConfig.cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/Modules/GnuradioConfig.cmake.in b/cmake/Modules/GnuradioConfig.cmake.in
index 388cac4e9b..f59e74b8b9 100644
--- a/cmake/Modules/GnuradioConfig.cmake.in
+++ b/cmake/Modules/GnuradioConfig.cmake.in
@@ -34,7 +34,9 @@ set(BOOST_REQUIRED_COMPONENTS
thread
)
-set(ENABLE_TESTING @ENABLE_TESTING@ CACHE BOOL "Enable testing support")
+if (NOT ENABLE_TESTING)
+ set(ENABLE_TESTING @ENABLE_TESTING@ CACHE BOOL "Enable testing support")
+endif()
if(ENABLE_TESTING)
list(APPEND BOOST_REQUIRED_COMPONENTS unit_test_framework)