/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.6-CodeBlocks.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.6-CodeBlocks.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 8 23:35:54 2012 UTC (2 years, 5 months ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

1 From 240d39a6a4f72fe0e45fc1a1403e0b578d36a142 Mon Sep 17 00:00:00 2001
2 From: Clinton Stimpson <clinton@elemtech.com>
3 Date: Wed, 5 Oct 2011 10:02:32 -0600
4 Subject: [PATCH] Fix XML safety issue with adding preprocessor defines in CodeBlocks project.
5
6 ---
7 Source/cmExtraCodeBlocksGenerator.cxx | 4 +++-
8 1 files changed, 3 insertions(+), 1 deletions(-)
9
10 diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
11 index 7db91c7..9a0b1ea 100644
12 --- a/Source/cmExtraCodeBlocksGenerator.cxx
13 +++ b/Source/cmExtraCodeBlocksGenerator.cxx
14 @@ -19,6 +19,7 @@
15 #include "cmGeneratedFileStream.h"
16 #include "cmTarget.h"
17 #include "cmSystemTools.h"
18 +#include "cmXMLSafe.h"
19
20 #include <cmsys/SystemTools.hxx>
21
22 @@ -585,7 +586,8 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
23 for(std::vector<std::string>::const_iterator di = defs.begin();
24 di != defs.end(); ++di)
25 {
26 - fout <<" <Add option=\"-D" << di->c_str() << "\" />\n";
27 + cmXMLSafe safedef(di->c_str());
28 + fout <<" <Add option=\"-D" << safedef.str() << "\" />\n";
29 }
30 }
31
32 --
33 1.7.0

  ViewVC Help
Powered by ViewVC 1.1.20