diff options
author | Brad King <brad.king@kitware.com> | 2014-12-17 16:42:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-19 13:24:04 (GMT) |
commit | b189c5994d94b8dd0afdf14844db4a4be28cf4b1 (patch) | |
tree | 7b8230178af14f9db410b796aa2cb64fef046fdc /Tests/CFBundleTest | |
parent | 3a605693a5349a252bb9c3eb472d02b1c23886e3 (diff) | |
download | CMake-b189c5994d94b8dd0afdf14844db4a4be28cf4b1.zip CMake-b189c5994d94b8dd0afdf14844db4a4be28cf4b1.tar.gz CMake-b189c5994d94b8dd0afdf14844db4a4be28cf4b1.tar.bz2 |
Tests: Run CFBundleTest only with valid configuration
The verification script needs to know the configuration tested.
Diffstat (limited to 'Tests/CFBundleTest')
-rw-r--r-- | Tests/CFBundleTest/VerifyResult.cmake | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Tests/CFBundleTest/VerifyResult.cmake b/Tests/CFBundleTest/VerifyResult.cmake index e622900..e637bb1 100644 --- a/Tests/CFBundleTest/VerifyResult.cmake +++ b/Tests/CFBundleTest/VerifyResult.cmake @@ -14,13 +14,10 @@ message(STATUS "CTEST_CONFIGURATION_TYPE='${CTEST_CONFIGURATION_TYPE}'") message(STATUS "dir='${dir}'") message(STATUS "gen='${gen}'") -if(gen MATCHES "Make" OR - "${CTEST_CONFIGURATION_TYPE}" STREQUAL "" OR - "${CTEST_CONFIGURATION_TYPE}" STREQUAL "." OR - "${CTEST_CONFIGURATION_TYPE}" STREQUAL "NoConfig") - set(expected_filename "${dir}/CFBundleTest.plugin/Contents/MacOS/CFBundleTest") -else() +if(gen STREQUAL "Xcode") set(expected_filename "${dir}/${CTEST_CONFIGURATION_TYPE}/CFBundleTest.plugin/Contents/MacOS/CFBundleTest") +else() + set(expected_filename "${dir}/CFBundleTest.plugin/Contents/MacOS/CFBundleTest") endif() if(NOT EXISTS "${expected_filename}") |