From 99b6d16f076a6c41c7a60d8e217db535455f1df0 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 3 Jan 2009 14:17:30 +0000 Subject: -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 --- modules/FindKDE4Internal.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules') 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 -- cgit v1.2.1