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;
|
m_FullPath = hname;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
hname = pathname;
|
||||||
|
hname += ".cpp";
|
||||||
|
if(cmSystemTools::FileExists(hname.c_str()))
|
||||||
|
{
|
||||||
|
m_SourceExtension = "cpp";
|
||||||
|
m_HeaderFileOnly = false;
|
||||||
|
m_FullPath = hname;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
hname = pathname;
|
hname = pathname;
|
||||||
hname += ".h";
|
hname += ".h";
|
||||||
if(cmSystemTools::FileExists(hname.c_str()))
|
if(cmSystemTools::FileExists(hname.c_str()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user