diff options
author | David Cole <david.cole@kitware.com> | 2011-10-11 18:45:17 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-10-11 18:45:17 (GMT) |
commit | 296fde32dd1dea294ac237adb4a2e1767f3ec08e (patch) | |
tree | db9d572570fc674714b364b84de8eea69b8827b6 /Source/cmExtraCodeBlocksGenerator.cxx | |
parent | 6a8c70365f98e368be88be74f7b99d9e22f0ac63 (diff) | |
parent | 240d39a6a4f72fe0e45fc1a1403e0b578d36a142 (diff) | |
download | CMake-296fde32dd1dea294ac237adb4a2e1767f3ec08e.zip CMake-296fde32dd1dea294ac237adb4a2e1767f3ec08e.tar.gz CMake-296fde32dd1dea294ac237adb4a2e1767f3ec08e.tar.bz2 |
Merge topic 'CodeBlocks-quoting'
240d39a Fix XML safety issue with adding preprocessor defines in CodeBlocks project.
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeBlocksGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index 92dee5a..38002ec 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -19,6 +19,7 @@ #include "cmGeneratedFileStream.h" #include "cmTarget.h" #include "cmSystemTools.h" +#include "cmXMLSafe.h" #include <cmsys/SystemTools.hxx> @@ -592,7 +593,8 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout, for(std::vector<std::string>::const_iterator di = defs.begin(); di != defs.end(); ++di) { - fout <<" <Add option=\"-D" << di->c_str() << "\" />\n"; + cmXMLSafe safedef(di->c_str()); + fout <<" <Add option=\"-D" << safedef.str() << "\" />\n"; } } |