summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-04 18:36:06 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-05 08:26:10 (GMT)
commit510562e3e7b9387bebe14060b147ec3022ee58a3 (patch)
tree9a567d716efe26a683f84241facdb34bb98134e0 /Source/cmGlobalGenerator.cxx
parent629e94893668c69fccb6954b0fc807c54e9218dd (diff)
downloadCMake-510562e3e7b9387bebe14060b147ec3022ee58a3.zip
CMake-510562e3e7b9387bebe14060b147ec3022ee58a3.tar.gz
CMake-510562e3e7b9387bebe14060b147ec3022ee58a3.tar.bz2
cmGlobalGenerator: Don't fetch the cache manager in a loop.
It doesn't change from Makefile to Makefile.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 8123c99..3c0a0e2 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1537,10 +1537,9 @@ void cmGlobalGenerator::CheckLocalGenerators()
std::map<std::string, std::string> notFoundMap;
// std::set<std::string> notFoundMap;
// 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)
{
- manager = this->LocalGenerators[i]->GetMakefile()->GetCacheManager();
this->LocalGenerators[i]->ConfigureFinalPass();
cmTargets &targets =
this->LocalGenerators[i]->GetMakefile()->GetTargets();