diff options
author | Alexander Neundorf <neundorf@kde.org> | 2009-01-03 14:17:30 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2009-01-03 14:17:30 +0000 |
commit | 99b6d16f076a6c41c7a60d8e217db535455f1df0 (patch) | |
tree | 8fa4f1e6bf4a8d854369e0ce3c6408642a0f803f /modules/FindKDE4Internal.cmake | |
parent | 03e6a8809995b19e7d8f0094d9fca76dcc952ea3 (diff) | |
download | extra-cmake-modules-99b6d16f076a6c41c7a60d8e217db535455f1df0.tar.gz extra-cmake-modules-99b6d16f076a6c41c7a60d8e217db535455f1df0.tar.bz2 |
-use cmake_policy(VERSION) instead of a second cmake_minimum_required(VERSION) to set the cmake policies
to 2.4 compatiblity -> should be more obvious to understand the purpose
Alex
svn path=/trunk/KDE/kdelibs/; revision=904879
Diffstat (limited to 'modules/FindKDE4Internal.cmake')
-rw-r--r-- | modules/FindKDE4Internal.cmake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 540d2e8e..15fa0d98 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -245,9 +245,8 @@ # this is required now by cmake 2.6 and so must not be skipped by if(KDE4_FOUND) below cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR) -# this second call will never fail -# it is here for the effect that it sets the cmake policies to the 2.4.x compatibility settings for now -cmake_minimum_required(VERSION 2.4.5) +# set the cmake policies to the 2.4.x compatibility settings (may change for KDE 4.3) +cmake_policy(VERSION 2.4.5) # CMake 2.6, set compatibility behaviour to cmake 2.4 # this must be executed always, because the CMAKE_MINIMUM_REQUIRED() command above |