summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-19 10:05:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-19 19:40:31 (GMT)
commit50d152035da514005eaaa1d3e39e407676efd73c (patch)
treef05b8412ffb6f673918b9d21f3fe3d591f16af68 /Source/cmNinjaNormalTargetGenerator.cxx
parent0f876439e941c18f7fc264fbf02f5df9bc531f90 (diff)
downloadCMake-50d152035da514005eaaa1d3e39e407676efd73c.zip
CMake-50d152035da514005eaaa1d3e39e407676efd73c.tar.gz
CMake-50d152035da514005eaaa1d3e39e407676efd73c.tar.bz2
cmTarget: Make custom command accessors API const.
Add specific mutators instead of providing non-const refs.
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 015654b..d8e9b34 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -534,7 +534,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
std::replace(linkLibraries.begin(), linkLibraries.end(), '\\', '/');
}
- std::vector<cmCustomCommand> *cmdLists[3] = {
+ const std::vector<cmCustomCommand> *cmdLists[3] = {
&this->GetTarget()->GetPreBuildCommands(),
&this->GetTarget()->GetPreLinkCommands(),
&this->GetTarget()->GetPostBuildCommands()