summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-26 15:18:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-28 05:50:01 (GMT)
commit410f39a43ef3ad900bcaed15e6838f97f034f0e7 (patch)
tree492d6e230ce14301b645980aded53e0e6bf80f19 /Source/cmQtAutoGenerators.cxx
parent397b6298602f1496d1b946f5db827f5807d6ed23 (diff)
downloadCMake-410f39a43ef3ad900bcaed15e6838f97f034f0e7.zip
CMake-410f39a43ef3ad900bcaed15e6838f97f034f0e7.tar.gz
CMake-410f39a43ef3ad900bcaed15e6838f97f034f0e7.tar.bz2
cmMakefile: Delegate storage of Home dirs to the cmake class.
There is no need to duplicate these on every cmMakefile.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index 1548c36..91b2b27 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -1210,10 +1210,11 @@ static cmGlobalGenerator* CreateGlobalGenerator(cmake* cm,
cmGlobalGenerator* gg = new cmGlobalGenerator();
gg->SetCMakeInstance(cm);
+ cm->SetHomeOutputDirectory(targetDirectory);
+ cm->SetHomeDirectory(targetDirectory);
+
cmLocalGenerator* lg = gg->CreateLocalGenerator();
- lg->GetMakefile()->SetHomeOutputDirectory(targetDirectory);
lg->GetMakefile()->SetCurrentBinaryDirectory(targetDirectory);
- lg->GetMakefile()->SetHomeDirectory(targetDirectory);
lg->GetMakefile()->SetCurrentSourceDirectory(targetDirectory);
gg->SetCurrentLocalGenerator(lg);
@@ -1225,6 +1226,8 @@ bool cmQtAutoGenerators::Run(const std::string& targetDirectory,
{
bool success = true;
cmake cm;
+ cm.SetHomeOutputDirectory(targetDirectory);
+ cm.SetHomeDirectory(targetDirectory);
cmGlobalGenerator* gg = CreateGlobalGenerator(&cm, targetDirectory);
cmMakefile* makefile = gg->GetCurrentLocalGenerator()->GetMakefile();