diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-19 10:05:47 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-19 19:40:31 (GMT) |
commit | 50d152035da514005eaaa1d3e39e407676efd73c (patch) | |
tree | f05b8412ffb6f673918b9d21f3fe3d591f16af68 /Source/cmQtAutoGenerators.cxx | |
parent | 0f876439e941c18f7fc264fbf02f5df9bc531f90 (diff) | |
download | CMake-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/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 36cb368..35717ce 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -257,7 +257,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target) workingDirectory.c_str()); cc.SetEscapeOldStyle(false); cc.SetEscapeAllowMakeVars(true); - target->GetPreBuildCommands().push_back(cc); + target->AddPreBuildCommand(cc); } else #endif |