summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-20 21:12:32 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-02-13 21:32:55 (GMT)
commit72dcbbe5c017a4c071187259f9594ccf02f7b466 (patch)
tree1cd77bbfcdf4a2e65a2829a6df9292f755a18cb3 /Source/cmake.cxx
parent7fb14775a3cce73dc0cb0d759b96059a95f7104b (diff)
downloadCMake-72dcbbe5c017a4c071187259f9594ccf02f7b466.zip
CMake-72dcbbe5c017a4c071187259f9594ccf02f7b466.tar.gz
CMake-72dcbbe5c017a4c071187259f9594ccf02f7b466.tar.bz2
split Default commands into Scripting and Project
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 6141f50..c6292ce 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -179,7 +179,8 @@ cmake::cmake()
this->AddDefaultGenerators();
this->AddDefaultExtraGenerators();
- this->AddDefaultCommands();
+ this->AddScriptingCommands();
+ this->AddProjectCommands();
// Make sure we can capture the build tool output.
cmSystemTools::EnableVSConsoleOutput();
@@ -1654,9 +1655,18 @@ const char* cmake::GetCacheDefinition(const std::string& name) const
return this->State->GetInitializedCacheValue(name);
}
-void cmake::AddDefaultCommands()
+void cmake::AddScriptingCommands()
{
- std::vector<cmCommand*> const commands = GetPredefinedCommands();
+ std::vector<cmCommand*> const commands = GetScriptingCommands();
+ for (std::vector<cmCommand*>::const_iterator i = commands.begin();
+ i != commands.end(); ++i) {
+ this->State->AddCommand(*i);
+ }
+}
+
+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);