aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2013-02-09 11:32:45 +0100
committerAlex Neundorf <neundorf@kde.org>2013-02-09 11:32:45 +0100
commit1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900 (patch)
treefd61d4d81fce546bd3db16d721ddd2880079ec55
parentc8b1b0d646162d0323e1be51f3afdcbca9fef5ea (diff)
downloadextra-cmake-modules-1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900.tar.gz
extra-cmake-modules-1250ea0c2bd8cb3f6f8ec71fa20eb37357ca3900.tar.bz2
KDECMakeSettings: enable testing by default
Alex
-rw-r--r--kde-modules/KDECMakeSettings.cmake9
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