diff options
author | Brad King <brad.king@kitware.com> | 2012-09-11 19:52:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-11 19:59:16 (GMT) |
commit | dfa0ebd646203e4cecc150ff7589392d899e13d4 (patch) | |
tree | eb1505641a294daaadeb41ce963079b86d7ba61d /Tests/CMakeTests | |
parent | 1d3db6b34df827566ffe5615d568de0ef64d3e61 (diff) | |
download | CMake-dfa0ebd646203e4cecc150ff7589392d899e13d4.zip CMake-dfa0ebd646203e4cecc150ff7589392d899e13d4.tar.gz CMake-dfa0ebd646203e4cecc150ff7589392d899e13d4.tar.bz2 |
if: Compare up to 8 components in VERSION tests
Extend the number of components tested by
if(... VERSION_LESS ...)
if(... VERSION_EQUAL ...)
if(... VERSION_GREATER ...)
from 4 to 8. The latter is a more extreme maximum.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/VersionTest.cmake.in | 7 |
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() |