summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-15 17:47:13 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-05-15 17:47:13 (GMT)
commitc0e27431e7e47f36d8755ccd0d92c31fad671b35 (patch)
tree172f057e8ffcaa7590d6e3c9edfe7a94153c9eb6 /Source/cmGlobalUnixMakefileGenerator3.cxx
parentfd8e45d4a1c4f6b6dbd5edb99d77244f6cf836ff (diff)
downloadCMake-c0e27431e7e47f36d8755ccd0d92c31fad671b35.zip
CMake-c0e27431e7e47f36d8755ccd0d92c31fad671b35.tar.gz
CMake-c0e27431e7e47f36d8755ccd0d92c31fad671b35.tar.bz2
PERF: performance improvement
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 4b22f07..ae9df5e 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -871,17 +871,11 @@ cmGlobalUnixMakefileGenerator3
// search each local generator until a match is found
if (!result)
{
- unsigned int i;
- for (i = 0; i < this->LocalGenerators.size(); ++i)
+ result = this->FindTarget(0,name);
+ if (result)
{
- // search all targets
- result = this->LocalGenerators[i]->GetMakefile()->FindTarget(name);
- if (result)
- {
- lg3 = static_cast<cmLocalUnixMakefileGenerator3 *>
- (this->LocalGenerators[i]);
- break;
- }
+ lg3 = static_cast<cmLocalUnixMakefileGenerator3 *>
+ (result->GetMakefile()->GetLocalGenerator());
}
}