aboutsummaryrefslogtreecommitdiff
path: root/ECMConfig.cmake.in
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2017-08-08 10:43:48 +0200
committerDavid Faure <faure@kde.org>2017-08-09 19:16:57 +0200
commit7af93dd23873d0b9cdbac192949e7e5114940aa6 (patch)
treea9f03da2275e79181547fe566af9012ca5d77519 /ECMConfig.cmake.in
parente5301edf1daf06aa862eb5ccae5ede72d7717fe0 (diff)
downloadextra-cmake-modules-7af93dd23873d0b9cdbac192949e7e5114940aa6.tar.gz
extra-cmake-modules-7af93dd23873d0b9cdbac192949e7e5114940aa6.tar.bz2
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
Diffstat (limited to 'ECMConfig.cmake.in')
-rw-r--r--ECMConfig.cmake.in2
1 files changed, 2 insertions, 0 deletions
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")