[cmake-commits] king committed cmLocalVisualStudio7Generator.cxx 1.155 1.156

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Oct 26 10:49:31 EDT 2006


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

Modified Files:
	cmLocalVisualStudio7Generator.cxx 
Log Message:
BUG: When writing newlines between script portions in prebuild, prelink, and postbuild command lines they must be escaped for XML so that the IDE receives them.  This fixes the fix for bug #3977.


Index: cmLocalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- cmLocalVisualStudio7Generator.cxx	25 Oct 2006 16:49:27 -0000	1.155
+++ cmLocalVisualStudio7Generator.cxx	26 Oct 2006 14:49:29 -0000	1.156
@@ -1440,7 +1440,7 @@
       }
     else
       {
-      fout << "\n";
+      fout << this->EscapeForXML("\n");
       }
     std::string script =
       this->ConstructScript(cr->GetCommandLines(),
@@ -1469,7 +1469,7 @@
       }
     else
       {
-      fout << "\n";
+      fout << this->EscapeForXML("\n");
       }
     std::string script =
       this->ConstructScript(cr->GetCommandLines(),
@@ -1498,7 +1498,7 @@
       }
     else
       {
-      fout << "\n";
+      fout << this->EscapeForXML("\n");
       }
     std::string script =
       this->ConstructScript(cr->GetCommandLines(),



More information about the Cmake-commits mailing list