summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 17cad1a..2f740d1 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -799,17 +799,15 @@ void cmGlobalGenerator::FillProjectMap()
}
+
cmTarget* cmGlobalGenerator::FindTarget(const char* name)
{
for(unsigned int i = 0; i < m_LocalGenerators.size(); ++i)
{
- cmTargets& tgts = m_LocalGenerators[i]->GetMakefile()->GetTargets();
- for(cmTargets::iterator l = tgts.begin(); l != tgts.end(); l++)
+ cmTarget* ret = m_LocalGenerators[i]->GetMakefile()->FindTarget(name);
+ if(ret)
{
- if(l->first == name)
- {
- return &l->second;
- }
+ return ret;
}
}
return 0;