summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 258debd..96057f4 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -15,11 +15,14 @@
=========================================================================*/
#include "cmLocalGenerator.h"
+#include "cmGlobalGenerator.h"
+#include "cmake.h"
#include "cmMakefile.h"
cmLocalGenerator::cmLocalGenerator()
{
m_Makefile = new cmMakefile;
+ m_Makefile->SetLocalGenerator(this);
}
cmLocalGenerator::~cmLocalGenerator()
@@ -34,3 +37,14 @@ void cmLocalGenerator::Configure()
currentStart += "/CMakeLists.txt";
m_Makefile->ReadListFile(currentStart.c_str());
}
+
+void cmLocalGenerator::SetGlobalGenerator(cmGlobalGenerator *gg)
+{
+ m_GlobalGenerator = gg;
+
+ // setup the home directories
+ m_Makefile->SetHomeDirectory(
+ gg->GetCMakeInstance()->GetHomeDirectory());
+ m_Makefile->SetHomeOutputDirectory(
+ gg->GetCMakeInstance()->GetHomeOutputDirectory());
+};