summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.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/cmMakefile.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/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index ac8381c..4a2153d 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -903,13 +903,13 @@ cmMakefile::AddCustomCommandToTarget(const char* target,
switch(type)
{
case cmTarget::PRE_BUILD:
- ti->second.GetPreBuildCommands().push_back(cc);
+ ti->second.AddPreBuildCommand(cc);
break;
case cmTarget::PRE_LINK:
- ti->second.GetPreLinkCommands().push_back(cc);
+ ti->second.AddPreLinkCommand(cc);
break;
case cmTarget::POST_BUILD:
- ti->second.GetPostBuildCommands().push_back(cc);
+ ti->second.AddPostBuildCommand(cc);
break;
}
}