diff options
-rw-r--r-- | kde-modules/KDECMakeSettings.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake index fbd22754..8de8a611 100644 --- a/kde-modules/KDECMakeSettings.cmake +++ b/kde-modules/KDECMakeSettings.cmake @@ -50,12 +50,15 @@ endif() if(NOT KDE_SKIP_TEST_SETTINGS) - enable_testing() - # support for cdash dashboards if (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake) include(CTest) - endif (EXISTS ${CMAKE_SOURCE_DIR}/CTestConfig.cmake) + else() + option(BUILD_TESTING "Build the testing tree." ON) + if(BUILD_TESTING) + enable_testing() + endif () + endif () endif() # Tell FindQt4.cmake to point the QT_QTFOO_LIBRARY targets at the imported targets |