diff options
author | Brad King <brad.king@kitware.com> | 2012-03-13 13:17:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-03-13 15:23:14 (GMT) |
commit | ac800f49d07337df79565c77fe0847222ade520b (patch) | |
tree | 709081452363f5cc506fa1fb4175417707593ff4 /Source/cmLocalNinjaGenerator.h | |
parent | 9a0d5a828a8f47b4388dbeab8bde9921ee3b7146 (diff) | |
download | CMake-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.h | 6 |
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; }; |