summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
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 e53851d..d1235b2 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -938,13 +938,13 @@ void cmMakefile::CommitCustomCommandToTarget(
cc.SetJobPool(job_pool);
switch (type) {
case cmCustomCommandType::PRE_BUILD:
- target->AddPreBuildCommand(cc);
+ target->AddPreBuildCommand(std::move(cc));
break;
case cmCustomCommandType::PRE_LINK:
- target->AddPreLinkCommand(cc);
+ target->AddPreLinkCommand(std::move(cc));
break;
case cmCustomCommandType::POST_BUILD:
- target->AddPostBuildCommand(cc);
+ target->AddPostBuildCommand(std::move(cc));
break;
}
this->UpdateOutputToSourceMap(byproducts, target);