summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-05 19:28:51 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-05 19:28:51 (GMT)
commit5c217cf83f423f7e844b026d23360072f0cfa275 (patch)
treeb9fbc79b471064868a6545489beef72b2a75518a /Source
parentadbb5c5e79cae2235727309d40e1f7d0d195de1c (diff)
downloadCMake-5c217cf83f423f7e844b026d23360072f0cfa275.zip
CMake-5c217cf83f423f7e844b026d23360072f0cfa275.tar.gz
CMake-5c217cf83f423f7e844b026d23360072f0cfa275.tar.bz2
perf improvement
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index b256314..8abf90e 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1655,8 +1655,8 @@ cmSourceFile* cmMakefile::GetSource(const char* sourceName) const
for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin();
i != m_SourceFiles.end(); ++i)
{
- if (cmSystemTools::GetFilenamePath((*i)->GetFullPath()) == path &&
- (*i)->GetSourceName() == sname &&
+ if ((*i)->GetSourceName() == sname &&
+ cmSystemTools::GetFilenamePath((*i)->GetFullPath()) == path &&
(ext.size() == 0 || (ext == (*i)->GetSourceExtension())))
{
return *i;