From cd111487e4b4c093f33df1ce810d185213eb001c Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Thu, 27 Mar 2008 20:22:09 +0000 Subject: print a warning for those using cmake 2.5, next monday this will become an error Alex svn path=/trunk/KDE/kdelibs/; revision=790915 --- modules/FindKDE4Internal.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.1