diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-06-05 19:28:51 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-06-05 19:28:51 (GMT) |
commit | 5c217cf83f423f7e844b026d23360072f0cfa275 (patch) | |
tree | b9fbc79b471064868a6545489beef72b2a75518a /Source | |
parent | adbb5c5e79cae2235727309d40e1f7d0d195de1c (diff) | |
download | CMake-5c217cf83f423f7e844b026d23360072f0cfa275.zip CMake-5c217cf83f423f7e844b026d23360072f0cfa275.tar.gz CMake-5c217cf83f423f7e844b026d23360072f0cfa275.tar.bz2 |
perf improvement
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
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; |