diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-02-20 21:59:39 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-02-20 21:59:39 +0000 |
commit | 101adcebe1e4c82e508a345fdfd045a503e98441 (patch) | |
tree | f9808b45d927a99460f7c460cca6edd049d02b64 | |
parent | 0decb04cc5316c3d081d00fc13a3d85755e918fb (diff) | |
download | extra-cmake-modules-101adcebe1e4c82e508a345fdfd045a503e98441.tar.gz extra-cmake-modules-101adcebe1e4c82e508a345fdfd045a503e98441.tar.bz2 |
-give useful error message if a cmake cvs without set_property() is used
Alex
svn path=/branches/KDE/4.0/kdelibs/; revision=777553
-rw-r--r-- | modules/FindKDE4Internal.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
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 |