summaryrefslogtreecommitdiffstats
path: root/Tests/OutOfSource
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-20 17:34:39 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-20 17:34:39 (GMT)
commite85eb5fc3d8e937eb0f70a6cfb3ae99cfcb7ea34 (patch)
tree288b8a7e0cca0aeb3aa25908573622d0b4e07705 /Tests/OutOfSource
parent8f870ddeca261c331016821488adb7af0977fa04 (diff)
downloadCMake-e85eb5fc3d8e937eb0f70a6cfb3ae99cfcb7ea34.zip
CMake-e85eb5fc3d8e937eb0f70a6cfb3ae99cfcb7ea34.tar.gz
CMake-e85eb5fc3d8e937eb0f70a6cfb3ae99cfcb7ea34.tar.bz2
BUG: Reduce long source file name length for WMake.
Diffstat (limited to 'Tests/OutOfSource')
-rw-r--r--Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
index c5eb71e..d111509 100644
--- a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
+++ b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
@@ -21,6 +21,13 @@ 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)