فهرست منبع

BUG: fix for bug#3362 xml escapes on -D stuff for visual studio

Bill Hoffman 19 سال پیش
والد
کامیت
4c44781404
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Source/cmLocalVisualStudio7Generator.cxx

+ 1 - 1
Source/cmLocalVisualStudio7Generator.cxx

@@ -1020,7 +1020,7 @@ void cmLocalVisualStudio7Generator::OutputDefineFlags(const char* flags,
     // Double-quotes in the value of the definition must be escaped
     // Double-quotes in the value of the definition must be escaped
     // with a backslash.  The entire definition should be quoted in
     // with a backslash.  The entire definition should be quoted in
     // the generated xml attribute to avoid confusing the VS parser.
     // 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
     // if the define has something in it that is not a letter or a number
     // then quote it
     // then quote it
     if(define.
     if(define.