From fd44517bae86dba4c3cc6d2a8ef278998ee40e5a Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 9 Jul 2018 07:37:58 +0200 Subject: [PATCH] Honor BUILD_TESTING --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9459f0d68..769bb203c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,8 +144,10 @@ endif() add_subdirectory( ui ) add_subdirectory( shell ) add_subdirectory( generators ) -add_subdirectory( autotests ) -add_subdirectory( conf/autotests ) +if(BUILD_TESTING) + add_subdirectory( autotests ) + add_subdirectory( conf/autotests ) +endif if(KF5DocTools_FOUND) add_subdirectory(doc)