Fix XML safety issue with adding preprocessor defines in CodeBlocks project.
This commit is contained in:
parent
a5683f80bd
commit
240d39a6a4
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue