aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Mueller <mueller@kde.org>2009-05-06 10:16:38 +0000
committerDirk Mueller <mueller@kde.org>2009-05-06 10:16:38 +0000
commitc6d500966585b114f2ba7c0ddaee8f51ed184708 (patch)
treea9057849ed2b55c34e0e1e269baf60583844302e
parentf42f55651f7efc68dbb8eb29107a6725563f761a (diff)
downloadextra-cmake-modules-c6d500966585b114f2ba7c0ddaee8f51ed184708.tar.gz
extra-cmake-modules-c6d500966585b114f2ba7c0ddaee8f51ed184708.tar.bz2
make it easier to bump the min version
svn path=/trunk/KDE/kdelibs/; revision=964198
-rw-r--r--modules/FindKDE4Internal.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 1eddbb8f..d22e7a75 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -296,7 +296,8 @@ if (NOT AUTOMOC4_VERSION)
# the version macro was added for 0.9.84
set(AUTOMOC4_VERSION "0.9.83")
endif (NOT AUTOMOC4_VERSION)
-macro_ensure_version("0.9.87" "${AUTOMOC4_VERSION}" _automoc4_version_ok)
+set(_automoc4_min_version "0.9.87")
+macro_ensure_version("${_automoc4_min_version}" "${AUTOMOC4_VERSION}" _automoc4_version_ok)
# for compatibility with KDE 4.0.x
set(KDE4_AUTOMOC_EXECUTABLE "${AUTOMOC4_EXECUTABLE}" )
@@ -332,7 +333,7 @@ if(NOT AUTOMOC4_FOUND OR NOT _automoc4_version_ok)
return()
else(NOT AUTOMOC4_FOUND)
if(NOT _automoc4_version_ok)
- message(${_REQ_STRING_KDE4_MESSAGE} "Your version of automoc4 is too old. You have ${AUTOMOC4_VERSION}, you need at least 0.9.87")
+ message(${_REQ_STRING_KDE4_MESSAGE} "Your version of automoc4 is too old. You have ${AUTOMOC4_VERSION}, you need at least ${_automoc4_min_version}")
return()
endif(NOT _automoc4_version_ok)
endif(NOT AUTOMOC4_FOUND)