summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-13 20:35:26 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-13 20:35:26 (GMT)
commit826405a1b668900ef4d5ecc0b676197e978bb80f (patch)
treeff388e4ea49a6368370e2d67de5486d0a4a7c7ae /Source/cmMakefile.cxx
parent030dd4b91e4023ce73ae0c9ca675227202ed1e1b (diff)
downloadCMake-826405a1b668900ef4d5ecc0b676197e978bb80f.zip
CMake-826405a1b668900ef4d5ecc0b676197e978bb80f.tar.gz
CMake-826405a1b668900ef4d5ecc0b676197e978bb80f.tar.bz2
ENH: Speedup by storing source name without last extension
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 61ab3ba..43964d7 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1769,8 +1769,7 @@ cmSourceFile* cmMakefile::GetSource(const char* sourceName) const
for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin();
i != m_SourceFiles.end(); ++i)
{
- if (cmSystemTools::GetFilenameWithoutLastExtension((*i)->GetFullPath())
- == sname &&
+ if ((*i)->GetSourceNameWithoutLastExtension() == sname &&
cmSystemTools::GetFilenamePath((*i)->GetFullPath()) == path &&
(ext.size() == 0 || (ext == (*i)->GetSourceExtension())))
{