summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-12 20:08:00 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-12 20:11:37 (GMT)
commitf53a3340bbb6ca4fa57c21187206df8160221d4d (patch)
tree02b31eb6449dca50f5ac412ec3a6d5d1d08ab288 /Tests/CMakeLists.txt
parenta829f09bdd5cf28c59eeebd39d1652be2bd23283 (diff)
downloadCMake-f53a3340bbb6ca4fa57c21187206df8160221d4d.zip
CMake-f53a3340bbb6ca4fa57c21187206df8160221d4d.tar.gz
CMake-f53a3340bbb6ca4fa57c21187206df8160221d4d.tar.bz2
Tests: Fix OS X version check to use component-wise test
Otherwise 10.10 may be considered to be less than 10.4 and the tests for CPack will not run. Reported-by: Sean McBride <sean@rogue-research.com>
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index fda9359..33c18ce 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -171,7 +171,7 @@ if(BUILD_TESTING)
OUTPUT_VARIABLE OSX_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- if(OSX_VERSION MATCHES "^10\\.[0123]" OR OSX_VERSION MATCHES "ProductVersion:\t10\\.[0123]")
+ if(OSX_VERSION VERSION_LESS 10.4)
message(STATUS "Forcing CTEST_TEST_CPACK=OFF on OSX < 10.4")
message(STATUS "OSX_VERSION='${OSX_VERSION}'")
set(CTEST_TEST_CPACK OFF)