[cmake-commits] hoffman committed cmGlobalXCodeGenerator.cxx 1.123 1.124

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Sep 29 16:14:36 EDT 2006


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv14045/Source

Modified Files:
	cmGlobalXCodeGenerator.cxx 
Log Message:
ENH: fix failing tests on mac


Index: cmGlobalXCodeGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- cmGlobalXCodeGenerator.cxx	28 Sep 2006 17:55:25 -0000	1.123
+++ cmGlobalXCodeGenerator.cxx	29 Sep 2006 20:14:34 -0000	1.124
@@ -954,7 +954,6 @@
       }
     }
   makefileStream << "\n\n";
-  
   for(std::vector<cmCustomCommand>::const_iterator i = commands.begin();
       i != commands.end(); ++i)
     {
@@ -963,8 +962,12 @@
       {
       bool escapeOldStyle = cc.GetEscapeOldStyle();
       bool escapeAllowMakeVars = cc.GetEscapeAllowMakeVars();
-      makefileStream << "\n#" << "Custom command rule: " << 
-        cc.GetComment() << "\n";
+      makefileStream << "\n#" << "Custom command rule: ";
+      if(cc.GetComment())
+        {
+        makefileStream << cc.GetComment();
+        }
+      makefileStream << "\n";
       const std::vector<std::string>& outputs = cc.GetOutputs();
       if(!outputs.empty())
         {



More information about the Cmake-commits mailing list