summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-10-25 17:27:40 (GMT)
committerBrad King <brad.king@kitware.com>2014-10-31 15:31:31 (GMT)
commitef09df646a480f4f879f19222a1dfb24316c1d6d (patch)
treea93a8c8f1cda0abd888590ee3eff33a1ae1c297a /Tests/CMakeTests
parent667560c88a707ca7eeaad129e253cce371beed1d (diff)
downloadCMake-ef09df646a480f4f879f19222a1dfb24316c1d6d.zip
CMake-ef09df646a480f4f879f19222a1dfb24316c1d6d.tar.gz
CMake-ef09df646a480f4f879f19222a1dfb24316c1d6d.tar.bz2
cmSystemTools: reimplement verson comparison without sscanf()
This now has the advantage that it works with version strings with any number of components.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/VersionTest.cmake.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeTests/VersionTest.cmake.in b/Tests/CMakeTests/VersionTest.cmake.in
index bd54de5..4e946ab 100644
--- a/Tests/CMakeTests/VersionTest.cmake.in
+++ b/Tests/CMakeTests/VersionTest.cmake.in
@@ -10,7 +10,9 @@ endif()
set(EQUALV "1 1")
list(APPEND EQUALV "1.0 1")
+list(APPEND EQUALV "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 1")
list(APPEND EQUALV "1.2.3.4.5.6.7 1.2.3.4.5.6.7")
+list(APPEND EQUALV "1.2.3.4.5.6.7.8.9 1.2.3.4.5.6.7.8.9")
foreach(v IN LISTS EQUALV)
string(REGEX MATCH "(.*) (.*)" _dummy "${v}")