aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-03-27 20:22:09 +0000
committerAlexander Neundorf <neundorf@kde.org>2008-03-27 20:22:09 +0000
commitcd111487e4b4c093f33df1ce810d185213eb001c (patch)
treec6bd8048998dbfe12f06ddfb61cc7ce9cc534289
parentefde2196f9294744bdb22bc443714eb3456e6287 (diff)
downloadextra-cmake-modules-cd111487e4b4c093f33df1ce810d185213eb001c.tar.gz
extra-cmake-modules-cd111487e4b4c093f33df1ce810d185213eb001c.tar.bz2
print a warning for those using cmake 2.5, next monday this will become an error
Alex svn path=/trunk/KDE/kdelibs/; revision=790915
-rw-r--r--modules/FindKDE4Internal.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index bcfd6171..115302d3 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -654,6 +654,16 @@ if(WIN32)
endif(WIN32)
+# cmake 2.5, i.e. the cvs version between 2.4 and 2.6, is not supported
+if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" STREQUAL "2.5")
+ message(STATUS "\n***********************************************
+You are using CMake 2.5, which was the unreleased development version between 2.4 and 2.6. This is no longer supported. Please update to CMake 2.6 or current cvs HEAD.
+This message will turn into an error Monday, March 31st.
+...and then self-destruct ! ;-)
+***********************************************\n")
+endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" STREQUAL "2.5")
+
+
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