Преглед изворни кода

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 <[email protected]>
Brad King пре 11 година
родитељ
комит
f53a3340bb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Tests/CMakeLists.txt

+ 1 - 1
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)