summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-06 15:49:52 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-06 15:49:52 (GMT)
commitfea02da5bdeb2b8c3043c4bbd3bdb184e04a58e5 (patch)
treeaf26a617cb334f06367cb6a2508349f6209379e0 /Source
parent62b612fbf841fd8d1d4e293ad84d933133543860 (diff)
downloadCMake-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.txt29
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