ERR: allow *.cpp as well as *.cxx etc etc
This commit is contained in:
parent
043f54ca5f
commit
8b5d6918ab
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue