From 7af93dd23873d0b9cdbac192949e7e5114940aa6 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 8 Aug 2017 10:43:48 +0200 Subject: Set CMAKE_*_OUTPUT_DIRECTORY to run tests without installing. Summary: For compatibility reasons, this is only enabled when projects upgrade their find_package(ECM) line to request a version >= 5.38. A little bit like cmake policies: just upgrading ECM is compatible, while increasing the required version can change behaviour. Test Plan: Tested make test in all KF5 frameworks; I have patches for some of them which I can't commit until this is in. Reviewers: cgiboudeaux, kfunk Reviewed By: cgiboudeaux, kfunk Subscribers: kfunk, #frameworks, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D7198 --- ECMConfig.cmake.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ECMConfig.cmake.in') diff --git a/ECMConfig.cmake.in b/ECMConfig.cmake.in index f373cdc0..cea6e802 100644 --- a/ECMConfig.cmake.in +++ b/ECMConfig.cmake.in @@ -8,4 +8,6 @@ set(ECM_KDE_MODULE_DIR "@PACKAGE_KDE_MODULES_INSTALL_DIR@") set(ECM_MODULE_PATH "${ECM_MODULE_DIR}" "${ECM_FIND_MODULE_DIR}" "${ECM_KDE_MODULE_DIR}") +set(ECM_GLOBAL_FIND_VERSION "${ECM_FIND_VERSION}") + include("${ECM_MODULE_DIR}/ECMUseFindModules.cmake") -- cgit v1.2.1