cmGlobalGenerator: Don't fetch the cache manager in a loop.
It doesn't change from Makefile to Makefile.
This commit is contained in:
parent
629e948936
commit
510562e3e7
|
@ -1537,10 +1537,9 @@ void cmGlobalGenerator::CheckLocalGenerators()
|
||||||
std::map<std::string, std::string> notFoundMap;
|
std::map<std::string, std::string> notFoundMap;
|
||||||
// std::set<std::string> notFoundMap;
|
// std::set<std::string> notFoundMap;
|
||||||
// after it is all done do a ConfigureFinalPass
|
// after it is all done do a ConfigureFinalPass
|
||||||
cmCacheManager* manager = 0;
|
cmCacheManager* manager = this->GetCMakeInstance()->GetCacheManager();
|
||||||
for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
|
for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
|
||||||
{
|
{
|
||||||
manager = this->LocalGenerators[i]->GetMakefile()->GetCacheManager();
|
|
||||||
this->LocalGenerators[i]->ConfigureFinalPass();
|
this->LocalGenerators[i]->ConfigureFinalPass();
|
||||||
cmTargets &targets =
|
cmTargets &targets =
|
||||||
this->LocalGenerators[i]->GetMakefile()->GetTargets();
|
this->LocalGenerators[i]->GetMakefile()->GetTargets();
|
||||||
|
|
Loading…
Reference in New Issue