diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-04-30 19:40:39 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-05-07 19:48:32 (GMT) |
commit | 325599caa2974f30d35f9ad0dbe1fc0760290b3e (patch) | |
tree | cda65fc2558c65435fefaad29434b5dfb5eb599f /Source/cmGlobalGenerator.cxx | |
parent | ac4106c69abea254e6a887dd42997fcdaca3a001 (diff) | |
download | CMake-325599caa2974f30d35f9ad0dbe1fc0760290b3e.zip CMake-325599caa2974f30d35f9ad0dbe1fc0760290b3e.tar.gz CMake-325599caa2974f30d35f9ad0dbe1fc0760290b3e.tar.bz2 |
cmGlobalGenerator: Store targets in hash maps
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index f09f7b3..4bdec3f 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -2070,15 +2070,13 @@ cmGlobalGenerator::FindTarget(const std::string& name, { if (!excludeAliases) { - std::map<std::string, cmTarget*>::const_iterator ai - = this->AliasTargets.find(name); + TargetMap::const_iterator ai = this->AliasTargets.find(name); if (ai != this->AliasTargets.end()) { return ai->second; } } - std::map<std::string,cmTarget *>::const_iterator i = - this->TotalTargets.find ( name ); + TargetMap::const_iterator i = this->TotalTargets.find ( name ); if ( i != this->TotalTargets.end() ) { return i->second; @@ -2859,7 +2857,7 @@ void cmGlobalGenerator::WriteSummary() cmGeneratedFileStream fout(fname.c_str()); // Generate summary information files for each target. - for(std::map<std::string,cmTarget *>::const_iterator ti = + for(TargetMap::const_iterator ti = this->TotalTargets.begin(); ti != this->TotalTargets.end(); ++ti) { if ((ti->second)->GetType() == cmTarget::INTERFACE_LIBRARY) |