From kde-commits Sat Sep 30 19:59:37 2017 From: Andreas Sturmlechner Date: Sat, 30 Sep 2017 19:59:37 +0000 To: kde-commits Subject: [baloo] /: Don't enter test subdirectories if BUILD_TESTING=OFF Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=150680158826309 Git commit 9383ea8927579555301eb378c1ce299dde2a2d08 by Andreas Sturmlechner. Committed on 30/09/2017 at 12:08. Pushed by asturmlechner into branch 'master'. Don't enter test subdirectories if BUILD_TESTING=3DOFF Reviewers: #frameworks Tags: #frameworks Differential Revision: https://phabricator.kde.org/D7330 M +3 -3 CMakeLists.txt M +3 -1 src/file/extractor/CMakeLists.txt https://commits.kde.org/baloo/9383ea8927579555301eb378c1ce299dde2a2d08 diff --git a/CMakeLists.txt b/CMakeLists.txt index f587e8e5..427a33f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,9 +95,9 @@ include_directories( add_subdirectory(src) add_subdirectory(icons) = -if (BUILD_KINOTIFY) - add_subdirectory(tests) - add_subdirectory(autotests) +if (BUILD_TESTING AND BUILD_KINOTIFY) + add_subdirectory(tests) + add_subdirectory(autotests) endif() = # i18n diff --git a/src/file/extractor/CMakeLists.txt b/src/file/extractor/CMakeLi= sts.txt index 65d55417..60c55cc2 100644 --- a/src/file/extractor/CMakeLists.txt +++ b/src/file/extractor/CMakeLists.txt @@ -33,4 +33,6 @@ target_link_libraries(baloo_file_extractor = install(TARGETS baloo_file_extractor DESTINATION ${BIN_INSTALL_DIR}) = -add_subdirectory(autotests) +if(BUILD_TESTING) + add_subdirectory(autotests) +endif()