diff options
author | Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> | 2019-12-09 18:02:47 +0100 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-12-19 18:20:22 +0100 |
commit | b6e36158da979a4b016d3b0cb89de5f74f764e3e (patch) | |
tree | f897f0ddbe7879bc040c7d69bfaaefbea7713c2a /cmake/Modules | |
parent | 33db846ff87dc67a3ba3465bcdb31232cee9fe6b (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.in | 4 |
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) |