summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-16 21:35:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-16 21:35:32 (GMT)
commitcb73410ccb8d2c05085b8fc5551215214bf12edd (patch)
tree8d9e562959db6e434bf9288716b5c3f05a4f7112 /Source/cmGlobalGenerator.cxx
parentae63ae6a6e48d2c502c7318dce66398183e6dbe4 (diff)
downloadCMake-cb73410ccb8d2c05085b8fc5551215214bf12edd.zip
CMake-cb73410ccb8d2c05085b8fc5551215214bf12edd.tar.gz
CMake-cb73410ccb8d2c05085b8fc5551215214bf12edd.tar.bz2
ENH: more tests are passing
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;