Merge topic 'tests-osx-version'

f53a3340 Tests: Fix OS X version check to use component-wise test
This commit is contained in:
Brad King 2014-12-15 11:06:51 -05:00 committed by CMake Topic Stage
commit ab09122717
1 changed files with 1 additions and 1 deletions

View File

@ -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)