summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-09-18 20:41:59 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-09-18 20:41:59 (GMT)
commit3e7fe5a7a0db605d791921abf0b910f6b41e0359 (patch)
tree0e9438ee00efa4deffc7ca660edc63861969b3ca /Tests/CMakeTests
parenta98881ac8ff9e12a690ebee381af17e475e3ab03 (diff)
parentdfa0ebd646203e4cecc150ff7589392d899e13d4 (diff)
downloadCMake-3e7fe5a7a0db605d791921abf0b910f6b41e0359.zip
CMake-3e7fe5a7a0db605d791921abf0b910f6b41e0359.tar.gz
CMake-3e7fe5a7a0db605d791921abf0b910f6b41e0359.tar.bz2
Merge topic 'if-version-depth'
dfa0ebd if: Compare up to 8 components in VERSION tests
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/VersionTest.cmake.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CMakeTests/VersionTest.cmake.in b/Tests/CMakeTests/VersionTest.cmake.in
index 215bb2b..9e31cb4 100644
--- a/Tests/CMakeTests/VersionTest.cmake.in
+++ b/Tests/CMakeTests/VersionTest.cmake.in
@@ -7,3 +7,10 @@ if("${CMAKE_VERSION}" VERSION_LESS "${min_ver}")
else()
message("CMAKE_VERSION=[${CMAKE_VERSION}] is not less than [${min_ver}]")
endif()
+
+set(v 1.2.3.4.5.6.7)
+if("${v}.8" VERSION_LESS "${v}.9")
+ message(STATUS "${v}.8 is less than ${v}.9")
+else()
+ message(FATAL_ERROR "${v}.8 is not less than ${v}.9?")
+endif()