summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-03 14:50:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-14 18:36:27 (GMT)
commit34c9ee2ed75e12c713bb49c699ac1dd882d1b8fa (patch)
tree83940147cdf05b1b82caff2c3f4b640b35ca83c0 /Source/cmLocalGenerator.cxx
parent3837c48334ff670d9132f80e35a31e263b21d3a1 (diff)
downloadCMake-34c9ee2ed75e12c713bb49c699ac1dd882d1b8fa.zip
CMake-34c9ee2ed75e12c713bb49c699ac1dd882d1b8fa.tar.gz
CMake-34c9ee2ed75e12c713bb49c699ac1dd882d1b8fa.tar.bz2
cmLocalGenerator: Require a global generator in the constructor.
Port generator factory methods to pass it.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 1c3114e..2f2da20 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -43,14 +43,17 @@
#include <StorageDefs.h>
#endif
-cmLocalGenerator::cmLocalGenerator(cmLocalGenerator* parent)
+cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg,
+ cmLocalGenerator* parent)
{
- this->Makefile = 0; // moved to after set on global
+ this->GlobalGenerator = gg;
this->Parent = parent;
if (parent)
{
parent->AddChild(this);
}
+ this->Makefile = new cmMakefile(this);
+
this->WindowsShell = false;
this->WindowsVSIDE = false;
this->WatcomWMake = false;
@@ -249,13 +252,6 @@ void cmLocalGenerator::SetupPathConversions()
this->StartOutputDirectoryComponents);
}
-
-void cmLocalGenerator::SetGlobalGenerator(cmGlobalGenerator *gg)
-{
- this->GlobalGenerator = gg;
- this->Makefile = new cmMakefile(this);
-}
-
void cmLocalGenerator::ConfigureFinalPass()
{
this->Makefile->ConfigureFinalPass();