This commit is contained in:
Ken Martin 2002-06-27 16:42:57 -04:00
parent 4d6433bdf6
commit 4b12e5a306
2 changed files with 2 additions and 2 deletions

View File

@ -1323,7 +1323,7 @@ cmData* cmMakefile::LookupData(const char* name) const
cmSourceFile* cmMakefile::GetSource(const char* sourceName) const cmSourceFile* cmMakefile::GetSource(const char* sourceName) const
{ {
std::string s = sourceName; std::string s = cmSystemTools::GetFilenameName(sourceName);
std::string ext; std::string ext;
std::string::size_type pos = s.rfind('.'); std::string::size_type pos = s.rfind('.');
if(pos != std::string::npos) if(pos != std::string::npos)

View File

@ -58,7 +58,7 @@ bool cmSourceFilesCommand::InitialPass(std::vector<std::string> const& argsIn)
generated = 1; generated = 1;
continue; continue;
} }
cmSourceFile* sf = m_Makefile->GetSource(cmSystemTools::GetFilenameName(copy).c_str()); cmSourceFile* sf = m_Makefile->GetSource(copy.c_str());
if(sf) if(sf)
{ {
// if the source file is already in the makefile, // if the source file is already in the makefile,