summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-19 21:17:10 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-21 16:14:51 (GMT)
commit4fb70919a57582e4ca7c2a9f6bc4f72b38f9af86 (patch)
tree70734798cfea61f17dda417527ab04153c2f85bc /Source/cmake.cxx
parent608afd4f62f57fe3f9dcac1e9cc94b8bd1adf9c6 (diff)
downloadCMake-4fb70919a57582e4ca7c2a9f6bc4f72b38f9af86.zip
CMake-4fb70919a57582e4ca7c2a9f6bc4f72b38f9af86.tar.gz
CMake-4fb70919a57582e4ca7c2a9f6bc4f72b38f9af86.tar.bz2
Create all commands from a single function
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 388984f..210ac41 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1652,11 +1652,8 @@ const char* cmake::GetCacheDefinition(const std::string& name) const
void cmake::AddDefaultCommands()
{
- std::vector<cmCommand*> commands;
- GetBootstrapCommands1(commands);
- GetBootstrapCommands2(commands);
- GetPredefinedCommands(commands);
- for (std::vector<cmCommand*>::iterator i = commands.begin();
+ std::vector<cmCommand*> const commands = GetPredefinedCommands();
+ for (std::vector<cmCommand*>::const_iterator i = commands.begin();
i != commands.end(); ++i) {
this->State->AddCommand(*i);
}