aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/FindKDE4Internal.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index b03fdd4b..95c11717 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -368,7 +368,10 @@ cmake_policy(SET CMP0005 OLD)
# were when the were defined. Keep the OLD behaviour so we can set the policies here
# for all KDE software without the big warning
cmake_policy(SET CMP0011 OLD)
-
+# since cmake 2.6.4
+if(POLICY CMP0017)
+ cmake_policy(SET CMP0017 NEW)
+endif(POLICY CMP0017)
# Only do something if it hasn't been found yet
if(NOT KDE4_FOUND)