From 101adcebe1e4c82e508a345fdfd045a503e98441 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 20 Feb 2008 21:59:39 +0000 Subject: -give useful error message if a cmake cvs without set_property() is used Alex svn path=/branches/KDE/4.0/kdelibs/; revision=777553 --- modules/FindKDE4Internal.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index e0b7bc15..a0c2a0fd 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -654,6 +654,14 @@ endif(WIN32) # Differences between CMake 2.4 and 2.6 if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.4) + + # some developers may be using an cmake cvs version which didn't have set_property() yet + # Tell them that a more recent version is required. + if(NOT COMMAND SET_PROPERTY) + message(FATAL_ERROR "You are using an old version of CMake from cvs, please update to CMake >= 2.6.0 or cvs at least from Feb 20th, 2008") + endif(NOT COMMAND SET_PROPERTY) + + # CMake 2.6 gives errors if there are multiple targets with the same name # we use this for the target "buildtests", which is created for the unit tests # and which depends on the tests, so building "buildtests" builds all the tests -- cgit v1.2.1