diff options
author | David Cole <david.cole@kitware.com> | 2007-11-10 11:54:43 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2007-11-10 11:54:43 (GMT) |
commit | 6767a658fc32b6b49b4ea97d75826e6b60d4c6f7 (patch) | |
tree | 55df622762bd89f0df44da2b5a61d5c5ce4274dd /Tests/SimpleInstallS2 | |
parent | 7859d9332dfba1128f299c7701622f2a30525296 (diff) | |
download | CMake-6767a658fc32b6b49b4ea97d75826e6b60d4c6f7.zip CMake-6767a658fc32b6b49b4ea97d75826e6b60d4c6f7.tar.gz CMake-6767a658fc32b6b49b4ea97d75826e6b60d4c6f7.tar.bz2 |
BUG: Need extra regex to parse sw_vers output on Mac OSX 10.2 (and presumably earlier) to avoid running PackageMaker during the SimpleInstall* tests. See comment in CMake/Tests/SimpleInstall/CMakeLists.txt for more info.
Diffstat (limited to 'Tests/SimpleInstallS2')
-rw-r--r-- | Tests/SimpleInstallS2/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt index e1de4bd..23930d4 100644 --- a/Tests/SimpleInstallS2/CMakeLists.txt +++ b/Tests/SimpleInstallS2/CMakeLists.txt @@ -355,10 +355,11 @@ IF(APPLE AND NOT CTEST_TEST_CPACK) OUTPUT_VARIABLE OSX_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) - IF("${OSX_VERSION}" MATCHES "^10\\.[0123]") - MESSAGE(STATUS "Disabling package test on OSX ${OSX_VERSION} < 10.4") + IF("${OSX_VERSION}" MATCHES "^10\\.[0123]" OR "${OSX_VERSION}" MATCHES "ProductVersion:\t10\\.[0123]") + MESSAGE(STATUS "Disabling package test on OSX < 10.4") + MESSAGE(STATUS "OSX_VERSION='${OSX_VERSION}'") SET(PACKAGE_TARGET) - ENDIF("${OSX_VERSION}" MATCHES "^10\\.[0123]") + ENDIF("${OSX_VERSION}" MATCHES "^10\\.[0123]" OR "${OSX_VERSION}" MATCHES "ProductVersion:\t10\\.[0123]") ENDIF(APPLE AND NOT CTEST_TEST_CPACK) ADD_CUSTOM_COMMAND( |