summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-04-30 17:27:33 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-05-07 19:48:32 (GMT)
commitac4106c69abea254e6a887dd42997fcdaca3a001 (patch)
tree0bc010811e15d9577d55348a24c1e7d253ac8cb5 /Source/cmMakefile.cxx
parent94429287454a3b40268dd48db7b38f158bbecd93 (diff)
downloadCMake-ac4106c69abea254e6a887dd42997fcdaca3a001.zip
CMake-ac4106c69abea254e6a887dd42997fcdaca3a001.tar.gz
CMake-ac4106c69abea254e6a887dd42997fcdaca3a001.tar.bz2
cmMakefile: Use a hashmap for imported targets
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 07cfe12..556bc9b 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3911,8 +3911,7 @@ cmTarget* cmMakefile::FindTarget(const std::string& name,
{
if (!excludeAliases)
{
- std::map<std::string, cmTarget*>::const_iterator i
- = this->AliasTargets.find(name);
+ TargetMap::const_iterator i = this->AliasTargets.find(name);
if (i != this->AliasTargets.end())
{
return i->second;
@@ -4134,7 +4133,7 @@ cmTarget* cmMakefile::FindTargetToUse(const std::string& name,
{
// Look for an imported target. These take priority because they
// are more local in scope and do not have to be globally unique.
- std::map<std::string, cmTarget*>::const_iterator
+ TargetMap::const_iterator
imported = this->ImportedTargets.find(name);
if(imported != this->ImportedTargets.end())
{