diff options
author | Brad King <brad.king@kitware.com> | 2003-02-06 15:49:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-02-06 15:49:52 (GMT) |
commit | fea02da5bdeb2b8c3043c4bbd3bdb184e04a58e5 (patch) | |
tree | af26a617cb334f06367cb6a2508349f6209379e0 /Source | |
parent | 62b612fbf841fd8d1d4e293ad84d933133543860 (diff) | |
download | CMake-fea02da5bdeb2b8c3043c4bbd3bdb184e04a58e5.zip CMake-fea02da5bdeb2b8c3043c4bbd3bdb184e04a58e5.tar.gz CMake-fea02da5bdeb2b8c3043c4bbd3bdb184e04a58e5.tar.bz2 |
ENH: Comeau C++ has been added for nightly testing. It does not support shared libraries, so we cannot run the complex tests.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMakeLists.txt | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 04fe6ae..5baf175 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -161,17 +161,24 @@ IF(BUILD_TESTING) ${CMake_BINARY_DIR}/Tests/LoadCommandOneConfig LoadedCommand ONLY_ONE_CONFIG) - ADD_TEST(complex ${CMake_BINARY_DIR}/Source/cmaketest - ${CMake_SOURCE_DIR}/Tests/Complex - ${CMake_BINARY_DIR}/Tests/Complex - complex - ${CMake_BINARY_DIR}/Tests/Complex/bin) - - ADD_TEST(complexOneConfig ${CMake_BINARY_DIR}/Source/cmaketest - ${CMake_SOURCE_DIR}/Tests/Complex - ${CMake_BINARY_DIR}/Tests/ComplexOneConfig - complex - ${CMake_BINARY_DIR}/Tests/ComplexOneConfig/bin ONLY_ONE_CONFIG) + # Como does not seem to support shared libraries. + GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_CXX_COMPILER} NAME_WE) + IF(CMAKE_BASE_NAME MATCHES "^como$") + SET(COMPILER_IS_COMO 1) + ENDIF(CMAKE_BASE_NAME MATCHES "^como$") + IF(NOT COMPILER_IS_COMO) + ADD_TEST(complex ${CMake_BINARY_DIR}/Source/cmaketest + ${CMake_SOURCE_DIR}/Tests/Complex + ${CMake_BINARY_DIR}/Tests/Complex + complex + ${CMake_BINARY_DIR}/Tests/Complex/bin) + + ADD_TEST(complexOneConfig ${CMake_BINARY_DIR}/Source/cmaketest + ${CMake_SOURCE_DIR}/Tests/Complex + ${CMake_BINARY_DIR}/Tests/ComplexOneConfig + complex + ${CMake_BINARY_DIR}/Tests/ComplexOneConfig/bin ONLY_ONE_CONFIG) + ENDIF(NOT COMPILER_IS_COMO) ADD_TEST(Example ${CMake_BINARY_DIR}/Source/cmaketest ${CMake_SOURCE_DIR}/Example |