summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-04 19:24:49 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-04 19:24:49 (GMT)
commit5b0611d70955696f853f197cd0cc2057eb063ed6 (patch)
treefcc795aed9589b45271de3bc1b22c39a0e0e23ce /Source/cmLocalGenerator.cxx
parent49aebe6c99934dec634a3b497128465645db406c (diff)
downloadCMake-5b0611d70955696f853f197cd0cc2057eb063ed6.zip
CMake-5b0611d70955696f853f197cd0cc2057eb063ed6.tar.gz
CMake-5b0611d70955696f853f197cd0cc2057eb063ed6.tar.bz2
updates
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());
+};