cmGlobalGenerator: Avoid cmLocalGenerator until after Configure.

This commit is contained in:
Stephen Kelly 2015-08-02 12:08:49 +02:00
parent ff8ac8ee6a
commit bd096d30e0
1 changed files with 4 additions and 4 deletions

View File

@ -1134,17 +1134,17 @@ void cmGlobalGenerator::Configure()
this->LocalGenerators.push_back(lg);
// set the Start directories
lg->GetMakefile()->SetCurrentSourceDirectory
dirMf->SetCurrentSourceDirectory
(this->CMakeInstance->GetHomeDirectory());
lg->GetMakefile()->SetCurrentBinaryDirectory
dirMf->SetCurrentBinaryDirectory
(this->CMakeInstance->GetHomeOutputDirectory());
this->BinaryDirectories.insert(
this->CMakeInstance->GetHomeOutputDirectory());
// now do it
lg->GetMakefile()->Configure();
lg->GetMakefile()->EnforceDirectoryLevelRules();
dirMf->Configure();
dirMf->EnforceDirectoryLevelRules();
// update the cache entry for the number of local generators, this is used
// for progress