diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-19 16:17:16 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-19 16:20:57 (GMT) |
commit | 4572d8b34e5ac0985dc3beaefbe9dde514aa0ff4 (patch) | |
tree | f696ccff26c0359dd69e69b81a5f3b6fa3102e21 /Modules/FindKDE4.cmake | |
parent | 0d48bb627388e24a961d36ea6d152eb866676ac1 (diff) | |
download | CMake-4572d8b34e5ac0985dc3beaefbe9dde514aa0ff4.zip CMake-4572d8b34e5ac0985dc3beaefbe9dde514aa0ff4.tar.gz CMake-4572d8b34e5ac0985dc3beaefbe9dde514aa0ff4.tar.bz2 |
KDE4: Find the Internal package with NO_POLICY_SCOPE.
If someone in KDE wants to port away from OLD policies, they might want to do
so one policy at a time. This patch will allow them to use
find_package(KDE4 NO_POLICY_SCOPE)
in callers to get around the CMP0011 warning, while still getting the policy
settings contained within.
Diffstat (limited to 'Modules/FindKDE4.cmake')
-rw-r--r-- | Modules/FindKDE4.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindKDE4.cmake b/Modules/FindKDE4.cmake index 3c2c309..5530166 100644 --- a/Modules/FindKDE4.cmake +++ b/Modules/FindKDE4.cmake @@ -105,7 +105,7 @@ if (KDE4_DATA_DIR) endif () # use FindKDE4Internal.cmake to do the rest - find_package(KDE4Internal ${_req} ${_quiet}) + find_package(KDE4Internal ${_req} ${_quiet} NO_POLICY_SCOPE) else () if (KDE4_FIND_REQUIRED) message(FATAL_ERROR "ERROR: cmake/modules/FindKDE4Internal.cmake not found in ${_data_DIR}") |