diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-04 17:27:58 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-04 17:27:58 (GMT) |
commit | 4c44781404068c68d33b74da88b3836dbf65edfb (patch) | |
tree | 11d490cdaa576e88da71be3c9373ca9feb213eb2 | |
parent | 9d5dc7b3966b1dd866df266db61748c65c788d3b (diff) | |
download | CMake-4c44781404068c68d33b74da88b3836dbf65edfb.zip CMake-4c44781404068c68d33b74da88b3836dbf65edfb.tar.gz CMake-4c44781404068c68d33b74da88b3836dbf65edfb.tar.bz2 |
BUG: fix for bug#3362 xml escapes on -D stuff for visual studio
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 91e5192..18ca80b 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1020,7 +1020,7 @@ void cmLocalVisualStudio7Generator::OutputDefineFlags(const char* flags, // 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. |