diff options
author | Alexander Neundorf <neundorf@kde.org> | 2009-02-09 22:42:26 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2009-02-09 22:42:26 +0000 |
commit | f23f060bb94cc76f8493322e8f220c2f5cc5bde7 (patch) | |
tree | 045a60168b460afe61d42fc21641fd0f7eaad612 | |
parent | fb5942b5076c3af75c54d3775e6a9919cde4f638 (diff) | |
download | extra-cmake-modules-f23f060bb94cc76f8493322e8f220c2f5cc5bde7.tar.gz extra-cmake-modules-f23f060bb94cc76f8493322e8f220c2f5cc5bde7.tar.bz2 |
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
-rw-r--r-- | modules/FindKDE4Internal.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
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 |