aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2006-09-28 13:22:29 +0000
committerLaurent Montel <montel@kde.org>2006-09-28 13:22:29 +0000
commit1835e933571cdb11a16e1e3c8c6d946439d21d17 (patch)
tree5f9de169f6bd07abc61bd8f7884300ce46d87145 /modules
parent8bd7e5ecf5b27cfcf56e697230f772988955d0d9 (diff)
downloadextra-cmake-modules-1835e933571cdb11a16e1e3c8c6d946439d21d17.tar.gz
extra-cmake-modules-1835e933571cdb11a16e1e3c8c6d946439d21d17.tar.bz2
Revert previous commit
I made an error to understand how version label worked. svn path=/trunk/KDE/kdelibs/; revision=589688
Diffstat (limited to 'modules')
-rw-r--r--modules/MacroEnsureVersion.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/MacroEnsureVersion.cmake b/modules/MacroEnsureVersion.cmake
index fee62c7f..badb50db 100644
--- a/modules/MacroEnsureVersion.cmake
+++ b/modules/MacroEnsureVersion.cmake
@@ -22,11 +22,6 @@ MACRO(MACRO_ENSURE_VERSION requested_version found_version var_too_old)
STRING(REGEX REPLACE "[0-9]+\\.([0-9]+)\\.[0-9]+.*" "\\1" found_minor_vers "${found_version}")
STRING(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" found_patch_vers "${found_version}")
- # Necessary to multiply by 10 otherwise 2.5.4 is inferior to 2.5.31
- if( req_patch_vers GREATER "9" AND found_patch_vers LESS "10")
- MATH(EXPR found_patch_vers "${found_patch_vers}*10")
- endif(req_patch_vers GREATER "9" AND found_patch_vers LESS "10")
-
# compute an overall version number which can be compared at once
MATH(EXPR req_vers_num "${req_major_vers}*10000 + ${req_minor_vers}*100 + ${req_patch_vers}")
MATH(EXPR found_vers_num "${found_major_vers}*10000 + ${found_minor_vers}*100 + ${found_patch_vers}")