summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-02 18:21:22 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-07 02:10:28 (GMT)
commit73e4df99cb4d63f5ea8babb40656a74305d77e12 (patch)
treeb7376eb88a3e222549f6cda83cd78aeea7689944 /Source/cmGlobalGenerator.cxx
parent193699376af09bd77875d4ddfd10c3feb13ecdd2 (diff)
downloadCMake-73e4df99cb4d63f5ea8babb40656a74305d77e12.zip
CMake-73e4df99cb4d63f5ea8babb40656a74305d77e12.tar.gz
CMake-73e4df99cb4d63f5ea8babb40656a74305d77e12.tar.bz2
cmGlobalGenerator: Store a container of cmMakefiles.
For use at configure-time.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 3c818ff..749ab6e 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1129,6 +1129,7 @@ void cmGlobalGenerator::Configure()
// start with this directory
cmLocalGenerator *lg = this->MakeLocalGenerator();
+ this->Makefiles.push_back(lg->GetMakefile());
this->LocalGenerators.push_back(lg);
// set the Start directories
@@ -1599,6 +1600,8 @@ void cmGlobalGenerator::ClearGeneratorMembers()
cmDeleteAll(this->BuildExportSets);
this->BuildExportSets.clear();
+ this->Makefiles.clear();
+
cmDeleteAll(this->LocalGenerators);
this->LocalGenerators.clear();
@@ -1929,6 +1932,12 @@ std::string cmGlobalGenerator::GenerateCMakeBuildCommand(
}
//----------------------------------------------------------------------------
+void cmGlobalGenerator::AddMakefile(cmMakefile *mf)
+{
+ this->Makefiles.push_back(mf);
+}
+
+//----------------------------------------------------------------------------
void cmGlobalGenerator::AddLocalGenerator(cmLocalGenerator *lg)
{
this->LocalGenerators.push_back(lg);