mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00
Fix XML safety issue with adding preprocessor defines in CodeBlocks project.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "cmGeneratedFileStream.h"
|
||||
#include "cmTarget.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmXMLSafe.h"
|
||||
|
||||
#include <cmsys/SystemTools.hxx>
|
||||
|
||||
@@ -585,7 +586,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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user