aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Rojas <arojas@archlinux.org>2018-07-08 21:03:51 +0200
committerAntonio Rojas <arojas@archlinux.org>2018-07-08 21:03:51 +0200
commit00646c782459f8fbfdba89bf505b2c1c8a1cd207 (patch)
tree04c2fa7021cd5a0c2aa9bea9770439b7556aea09
parent1c8c887402480454c85a63867ad262305226f9c0 (diff)
downloadkconfig-00646c782459f8fbfdba89bf505b2c1c8a1cd207.tar.gz
kconfig-00646c782459f8fbfdba89bf505b2c1c8a1cd207.tar.bz2
Honor BUILD_TESTING
Only build tests if BUILD_TESTING is on Differential Revision: https://phabricator.kde.org/D13947
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6102f7b4..945198c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,7 +39,9 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX KCONFIG
add_subdirectory(src)
-add_subdirectory(autotests)
+if (BUILD_TESTING)
+ add_subdirectory(autotests)
+endif()
include (ECMPoQmTools)
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")