[cmake-commits] king committed CMakeLists.txt 1.9 1.10 simple.cxx 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Mar 21 06:16:35 EST 2007


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

Modified Files:
	CMakeLists.txt simple.cxx 
Log Message:
BUG: Disable deep-source test on Watcom until it can be fixed.  This is a new feature for other generators anyway.


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

Index: simple.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- simple.cxx	16 Mar 2007 14:34:25 -0000	1.6
+++ simple.cxx	21 Mar 2007 11:16:32 -0000	1.7
@@ -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 @@
     {
     return -4;
     }
+#ifndef NO_DEEPSRC
   if(simple2() != 789)
     {
     return -5;
     }
+#endif
   return 0;
 }



More information about the Cmake-commits mailing list