diff options
| author | Alexander Neundorf <neundorf@kde.org> | 2009-02-09 22:40:46 +0000 | 
|---|---|---|
| committer | Alexander Neundorf <neundorf@kde.org> | 2009-02-09 22:40:46 +0000 | 
| commit | 75e7747ab465844a8fc682a412b05811088f988c (patch) | |
| tree | 99065b0ba22a307dc9aa985149ee10a62907d86b | |
| parent | 2638304d661b11a9590da90b8466f6066eb31c43 (diff) | |
| download | extra-cmake-modules-75e7747ab465844a8fc682a412b05811088f988c.tar.gz extra-cmake-modules-75e7747ab465844a8fc682a412b05811088f988c.tar.bz2 | |
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
| -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 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 | 
