summaryrefslogtreecommitdiffstats
path: root/Source/cmState.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/cmState.cxx
parent0101ace1319b5c97472649ec809b67299e2a46ce (diff)
downloadCMake-de77d355ac1808164b7247290f45b8133ce1246b.zip
CMake-de77d355ac1808164b7247290f45b8133ce1246b.tar.gz
CMake-de77d355ac1808164b7247290f45b8133ce1246b.tar.bz2
cmState: Add scripted commands by value
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index 82b0a52..441f11c 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -458,8 +458,7 @@ void cmState::AddUnexpectedCommand(std::string const& name, const char* error)
});
}
-void cmState::AddScriptedCommand(std::string const& name,
- std::unique_ptr<cmCommand> command)
+void cmState::AddScriptedCommand(std::string const& name, Command command)
{
std::string sName = cmSystemTools::LowerCase(name);
@@ -468,7 +467,7 @@ void cmState::AddScriptedCommand(std::string const& name,
this->ScriptedCommands["_" + sName] = oldCmd;
}
- this->ScriptedCommands[sName] = cmLegacyCommandWrapper(std::move(command));
+ this->ScriptedCommands[sName] = std::move(command);
}
cmState::Command cmState::GetCommand(std::string const& name) const