diff options
author | Brad King <brad.king@kitware.com> | 2007-03-21 11:16:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-21 11:16:32 (GMT) |
commit | 0cb45081d973a757f9ff582f5654b9207122d405 (patch) | |
tree | 6dd8a51f983604e8eebdf25c3e9b046522c23386 | |
parent | cb83efbe909b3c557e18d592fa7f37af9197a3f3 (diff) | |
download | CMake-0cb45081d973a757f9ff582f5654b9207122d405.zip CMake-0cb45081d973a757f9ff582f5654b9207122d405.tar.gz CMake-0cb45081d973a757f9ff582f5654b9207122d405.tar.bz2 |
BUG: Disable deep-source test on Watcom until it can be fixed. This is a new feature for other generators anyway.
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt | 14 | ||||
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/simple.cxx | 4 |
2 files changed, 11 insertions, 7 deletions
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt index d111509..175138b 100644 --- a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt +++ b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt @@ -21,13 +21,6 @@ IF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}") MATH(EXPR MAXPATH "${MAXPATH} - 46") ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio 8") - # Watcom WMake seems to have problems with long command lines. This - # limit should still be big enough to require special object file name - # conversion. - IF(${CMAKE_GENERATOR} MATCHES "Watcom WMake") - SET(MAXPATH 180) - ENDIF(${CMAKE_GENERATOR} MATCHES "Watcom WMake") - # MAXPATH less 25 for last /and/deeper/simple.cxx part and small safety MATH(EXPR MAXPATH "${MAXPATH} - 25") STRING(LENGTH "${DEEPDIR}" DEEPDIR_LEN) @@ -39,6 +32,13 @@ IF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}") STRING(LENGTH "${DEEPSRC}" DEEPSRC_LEN) CONFIGURE_FILE(simple.cxx.in ${DEEPSRC} COPYONLY) + # Watcom WMake seems to have problems with long command lines. Just + # disable this part of the test until it is resolved. + IF(${CMAKE_GENERATOR} MATCHES "Watcom WMake") + SET(DEEPSRC "") + ADD_DEFINITIONS(-DNO_DEEPSRC) + ENDIF(${CMAKE_GENERATOR} MATCHES "Watcom WMake") + ADD_LIBRARY(testlib testlib.cxx) ADD_EXECUTABLE (simple simple.cxx ../simple.cxx ${DEEPSRC}) TARGET_LINK_LIBRARIES(simple testlib outlib) diff --git a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx index 0be7195..d88c311 100644 --- a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx +++ b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx @@ -5,7 +5,9 @@ #include "testdp.h" extern int simple(); +#ifndef NO_DEEPSRC extern int simple2(); +#endif extern "C" int outlib(); int main () @@ -27,9 +29,11 @@ int main () { return -4; } +#ifndef NO_DEEPSRC if(simple2() != 789) { return -5; } +#endif return 0; } |