ERR: allow *.cpp as well as *.cxx etc etc

This commit is contained in:
John Biddiscombe 2001-06-14 17:06:10 -04:00
parent 043f54ca5f
commit 8b5d6918ab
1 changed files with 11 additions and 0 deletions

View File

@ -108,6 +108,17 @@ void cmSourceFile::SetName(const char* name, const char* dir)
m_FullPath = hname;
return;
}
//
hname = pathname;
hname += ".cpp";
if(cmSystemTools::FileExists(hname.c_str()))
{
m_SourceExtension = "cpp";
m_HeaderFileOnly = false;
m_FullPath = hname;
return;
}
hname = pathname;
hname += ".h";
if(cmSystemTools::FileExists(hname.c_str()))