PERF: performance improvement
This commit is contained in:
parent
fd8e45d4a1
commit
c0e27431e7
|
@ -871,17 +871,11 @@ cmGlobalUnixMakefileGenerator3
|
||||||
// search each local generator until a match is found
|
// search each local generator until a match is found
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
result = this->FindTarget(0,name);
|
||||||
for (i = 0; i < this->LocalGenerators.size(); ++i)
|
if (result)
|
||||||
{
|
{
|
||||||
// search all targets
|
lg3 = static_cast<cmLocalUnixMakefileGenerator3 *>
|
||||||
result = this->LocalGenerators[i]->GetMakefile()->FindTarget(name);
|
(result->GetMakefile()->GetLocalGenerator());
|
||||||
if (result)
|
|
||||||
{
|
|
||||||
lg3 = static_cast<cmLocalUnixMakefileGenerator3 *>
|
|
||||||
(this->LocalGenerators[i]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue