diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-01-20 21:40:16 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-02-13 21:39:20 (GMT) |
commit | e0f3931226d6f947572bce7a4b98c55812bba105 (patch) | |
tree | b10089a24e96921a74a261cc03d3d57f8f83aee4 /Source/cmake.cxx | |
parent | 72dcbbe5c017a4c071187259f9594ccf02f7b466 (diff) | |
download | CMake-e0f3931226d6f947572bce7a4b98c55812bba105.zip CMake-e0f3931226d6f947572bce7a4b98c55812bba105.tar.gz CMake-e0f3931226d6f947572bce7a4b98c55812bba105.tar.bz2 |
cmCommands: add commands directly to cmState
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c6292ce..b2384cd 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -120,8 +120,6 @@ #include <string.h> #include <utility> -class cmCommand; - namespace { #if defined(CMAKE_BUILD_WITH_CMAKE) @@ -1657,20 +1655,12 @@ const char* cmake::GetCacheDefinition(const std::string& name) const void cmake::AddScriptingCommands() { - std::vector<cmCommand*> const commands = GetScriptingCommands(); - for (std::vector<cmCommand*>::const_iterator i = commands.begin(); - i != commands.end(); ++i) { - this->State->AddCommand(*i); - } + GetScriptingCommands(this->State); } void cmake::AddProjectCommands() { - std::vector<cmCommand*> const commands = GetProjectCommands(); - for (std::vector<cmCommand*>::const_iterator i = commands.begin(); - i != commands.end(); ++i) { - this->State->AddCommand(*i); - } + GetProjectCommands(this->State); } void cmake::AddDefaultGenerators() |