Browse Source

BUG: Reduce long source file name length for WMake.

Brad King 18 years ago
parent
commit
e85eb5fc3d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt

+ 7 - 0
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)