[cmake-commits] king committed CMakeLists.txt 1.8 1.9

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Mar 20 12:34:41 EST 2007


Update of /cvsroot/CMake/CMake/Tests/OutOfSource/OutOfSourceSubdir
In directory public:/mounts/ram/cvs-serv2131

Modified Files:
	CMakeLists.txt 
Log Message:
BUG: Reduce long source file name length for WMake.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CMakeLists.txt	20 Mar 2007 12:16:35 -0000	1.8
+++ CMakeLists.txt	20 Mar 2007 17:34:39 -0000	1.9
@@ -21,6 +21,13 @@
     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)



More information about the Cmake-commits mailing list