diff options
author | Brad King <brad.king@kitware.com> | 2013-05-16 18:36:19 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-05-16 18:36:19 (GMT) |
commit | 9cdb5c0b547d36f56408f05816f66a22afd72258 (patch) | |
tree | 94c1f72305e45d1c97b615cbda58c4d116cf9427 /Source | |
parent | 1b4b64cd3c2f22260c74537cfaf84dc52d6cf86c (diff) | |
parent | 4e4688e46944bd94966d8abdaad68aad1cc2212b (diff) | |
download | CMake-9cdb5c0b547d36f56408f05816f66a22afd72258.zip CMake-9cdb5c0b547d36f56408f05816f66a22afd72258.tar.gz CMake-9cdb5c0b547d36f56408f05816f66a22afd72258.tar.bz2 |
Merge topic 'vs10-preprocessor-semicolons'
4e4688e VS 10: Escape ; as %3B in preprocessor definitions (#14073)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmDocumentCompileDefinitions.h | 2 | ||||
-rw-r--r-- | Source/cmVisualStudioGeneratorOptions.cxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmDocumentCompileDefinitions.h b/Source/cmDocumentCompileDefinitions.h index ef3b3e7..d15bd6d 100644 --- a/Source/cmDocumentCompileDefinitions.h +++ b/Source/cmDocumentCompileDefinitions.h @@ -23,7 +23,7 @@ "in a (configured) header file. Then report the limitation. " \ "Known limitations include:\n" \ " # - broken almost everywhere\n" \ - " ; - broken in VS IDE and Borland Makefiles\n" \ + " ; - broken in VS IDE 7.0 and Borland Makefiles\n" \ " , - broken in VS IDE\n" \ " % - broken in some cases in NMake\n" \ " & | - broken in some cases on MinGW\n" \ diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx index 1df0d9e..3c1cf95 100644 --- a/Source/cmVisualStudioGeneratorOptions.cxx +++ b/Source/cmVisualStudioGeneratorOptions.cxx @@ -6,6 +6,7 @@ inline std::string cmVisualStudio10GeneratorOptionsEscapeForXML(const char* s) { std::string ret = s; + cmSystemTools::ReplaceString(ret, ";", "%3B"); cmSystemTools::ReplaceString(ret, "&", "&"); cmSystemTools::ReplaceString(ret, "<", "<"); cmSystemTools::ReplaceString(ret, ">", ">"); |