summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index dc74374..6d17171 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -43,10 +43,14 @@
#include <StorageDefs.h>
#endif
-cmLocalGenerator::cmLocalGenerator()
+cmLocalGenerator::cmLocalGenerator(cmLocalGenerator* parent)
{
this->Makefile = 0; // moved to after set on global
- this->Parent = 0;
+ this->Parent = parent;
+ if (parent)
+ {
+ parent->AddChild(this);
+ }
this->WindowsShell = false;
this->WindowsVSIDE = false;
this->WatcomWMake = false;