diff options
author | Brad King <brad.king@kitware.com> | 2018-10-30 15:01:26 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-10-30 15:01:36 (GMT) |
commit | 87dfd53b276bff00e5e018b29043d05cf503018e (patch) | |
tree | 6f71cc12a5995d8807a3bcf3610d5e789c7c5b42 /Source/cmState.cxx | |
parent | 157e3e1bd6465703ca75fcf8cf7ea2f5271a5c65 (diff) | |
parent | 50572d638b3903f2c2af636dcfe9d3765fd87a7c (diff) | |
download | CMake-87dfd53b276bff00e5e018b29043d05cf503018e.zip CMake-87dfd53b276bff00e5e018b29043d05cf503018e.tar.gz CMake-87dfd53b276bff00e5e018b29043d05cf503018e.tar.bz2 |
Merge topic 'set_directory_properties-script-mode'
50572d638b set_directory_properties: Restore in script mode
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2544
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 4b65cf1..a2008a0 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -502,6 +502,16 @@ std::vector<std::string> cmState::GetCommandNames() const return commandNames; } +void cmState::RemoveBuiltinCommand(std::string const& name) +{ + assert(name == cmSystemTools::LowerCase(name)); + std::map<std::string, cmCommand*>::iterator i = + this->BuiltinCommands.find(name); + assert(i != this->BuiltinCommands.end()); + delete i->second; + this->BuiltinCommands.erase(i); +} + void cmState::RemoveUserDefinedCommands() { cmDeleteAll(this->ScriptedCommands); |