summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCommandCommand.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-04-07 19:27:41 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-07-21 07:25:32 (GMT)
commitde77d355ac1808164b7247290f45b8133ce1246b (patch)
tree09a027fac3e54ba058ce81326ae3f22357437447 /Source/cmLoadCommandCommand.cxx
parent0101ace1319b5c97472649ec809b67299e2a46ce (diff)
downloadCMake-de77d355ac1808164b7247290f45b8133ce1246b.zip
CMake-de77d355ac1808164b7247290f45b8133ce1246b.tar.gz
CMake-de77d355ac1808164b7247290f45b8133ce1246b.tar.bz2
cmState: Add scripted commands by value
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r--Source/cmLoadCommandCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index f5da2ee..78f4f83 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -247,7 +247,8 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args,
// function blocker
if (initFunction) {
this->Makefile->GetState()->AddScriptedCommand(
- args[0], cm::make_unique<cmLoadedCommand>(initFunction));
+ args[0],
+ cmLegacyCommandWrapper(cm::make_unique<cmLoadedCommand>(initFunction)));
return true;
}
this->SetError("Attempt to load command failed. "