From f23f060bb94cc76f8493322e8f220c2f5cc5bde7 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 9 Feb 2009 22:42:26 +0000 Subject: explicitely set CMP0011 to OLD, so we don't get the warning printed out with cmake >= 2.6.3 (but the behaviour is not changed by this) Alex svn path=/branches/KDE/4.2/kdelibs/; revision=924047 --- modules/FindKDE4Internal.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules') diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 0d50b2d5..94297f9d 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