[cmake-commits] hoffman committed cmLocalVisualStudio7Generator.cxx 1.150 1.151

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Oct 4 13:28:02 EDT 2006


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

Modified Files:
	cmLocalVisualStudio7Generator.cxx 
Log Message:
BUG: fix for bug#3362 xml escapes on -D stuff for visual studio


Index: cmLocalVisualStudio7Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- cmLocalVisualStudio7Generator.cxx	4 Oct 2006 15:33:07 -0000	1.150
+++ cmLocalVisualStudio7Generator.cxx	4 Oct 2006 17:27:58 -0000	1.151
@@ -1020,7 +1020,7 @@
     // Double-quotes in the value of the definition must be escaped
     // with a backslash.  The entire definition should be quoted in
     // the generated xml attribute to avoid confusing the VS parser.
-    cmSystemTools::ReplaceString(define, "\"", "\\"");
+    define = this->EscapeForXML(define.c_str());
     // if the define has something in it that is not a letter or a number
     // then quote it
     if(define.



More information about the Cmake-commits mailing list