diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-09-04 19:24:49 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-09-04 19:24:49 (GMT) |
commit | 5b0611d70955696f853f197cd0cc2057eb063ed6 (patch) | |
tree | fcc795aed9589b45271de3bc1b22c39a0e0e23ce /Source/cmLocalGenerator.cxx | |
parent | 49aebe6c99934dec634a3b497128465645db406c (diff) | |
download | CMake-5b0611d70955696f853f197cd0cc2057eb063ed6.zip CMake-5b0611d70955696f853f197cd0cc2057eb063ed6.tar.gz CMake-5b0611d70955696f853f197cd0cc2057eb063ed6.tar.bz2 |
updates
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 14 |
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()); +}; |