mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
perf improvement
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user