From 75e7747ab465844a8fc682a412b05811088f988c Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 9 Feb 2009 22:40:46 +0000 Subject: explicitely set CMP0011 to OLD, so we don't get the warning with cmake >= 2.6.3 Alex svn path=/trunk/KDE/kdelibs/; revision=924046 --- modules/FindKDE4Internal.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules') diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index c07de2c4..50a190bd 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -260,6 +260,13 @@ cmake_policy(SET CMP0002 OLD) cmake_policy(SET CMP0003 OLD) # CMP0005: keep escaping behaviour for definitions added via add_definitions() cmake_policy(SET CMP0005 OLD) +# since cmake 2.6.3: NEW behaviour is that setting policies doesn't "escape" the file +# where this is done, macros and functions are executed with the policies as they +# were when the were defined. Keep the OLD behaviour so we can set the policies here +# for all KDE software without the big warning +if(POLICY CMP0011) + cmake_policy(SET CMP0011 OLD) +endif(POLICY CMP0011) # Only do something if it hasn't been found yet -- cgit v1.2.1