diff options
author | Brad King <brad.king@kitware.com> | 2013-04-11 15:34:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-04-11 15:41:15 (GMT) |
commit | 4e4688e46944bd94966d8abdaad68aad1cc2212b (patch) | |
tree | 9c5f3392c977cd6521880042c7d53a8cbbfcfe7a /Source/cmVisualStudioGeneratorOptions.cxx | |
parent | 6bfa3d8668ecbc0c7b57f1c0fdcd56ba177a00b6 (diff) | |
download | CMake-4e4688e46944bd94966d8abdaad68aad1cc2212b.zip CMake-4e4688e46944bd94966d8abdaad68aad1cc2212b.tar.gz CMake-4e4688e46944bd94966d8abdaad68aad1cc2212b.tar.bz2 |
VS 10: Escape ; as %3B in preprocessor definitions (#14073)
Use the suggestion from http://support.microsoft.com/kb/2262855 to escape
semicolons in preprocessor definitions for VS >= 10. Update the
COMPILE_DEFINITIONS documentation disclaimer list of known limitations
accordingly. Update our "Preprocess" test to cover the case.
Suggested-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r-- | Source/cmVisualStudioGeneratorOptions.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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, ">", ">"); |