summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-03-13 13:17:46 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-13 15:23:14 (GMT)
commitac800f49d07337df79565c77fe0847222ade520b (patch)
tree709081452363f5cc506fa1fb4175417707593ff4 /Source/cmLocalNinjaGenerator.h
parent9a0d5a828a8f47b4388dbeab8bde9921ee3b7146 (diff)
downloadCMake-ac800f49d07337df79565c77fe0847222ade520b.zip
CMake-ac800f49d07337df79565c77fe0847222ade520b.tar.gz
CMake-ac800f49d07337df79565c77fe0847222ade520b.tar.bz2
Ninja: Constify use of cmCustomCommand
The generator never needs to modify custom command instances.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.h')
-rw-r--r--Source/cmLocalNinjaGenerator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalNinjaGenerator.h b/Source/cmLocalNinjaGenerator.h
index e9bbf43..28b431d 100644
--- a/Source/cmLocalNinjaGenerator.h
+++ b/Source/cmLocalNinjaGenerator.h
@@ -118,17 +118,17 @@ private:
void AppendCustomCommandLines(const cmCustomCommand *cc,
std::vector<std::string> &cmdLines);
void WriteCustomCommandRule();
- void WriteCustomCommandBuildStatement(cmCustomCommand *cc,
+ void WriteCustomCommandBuildStatement(cmCustomCommand const *cc,
const cmNinjaDeps& orderOnlyDeps);
- void AddCustomCommandTarget(cmCustomCommand* cc, cmTarget* target);
+ void AddCustomCommandTarget(cmCustomCommand const* cc, cmTarget* target);
void WriteCustomCommandBuildStatements();
private:
std::string ConfigName;
std::string HomeRelativeOutputPath;
- typedef std::map<cmCustomCommand*, std::set<cmTarget*> >
+ typedef std::map<cmCustomCommand const*, std::set<cmTarget*> >
CustomCommandTargetMap;
CustomCommandTargetMap CustomCommandTargets;
};