BUG: HasCXX did not use GetFileFormat and was broken

This commit is contained in:
Bill Hoffman 2003-03-15 10:04:37 -05:00
parent 858056bbc3
commit 94c396184e
1 changed files with 2 additions and 2 deletions

View File

@ -243,8 +243,8 @@ bool cmTarget::HasCxx() const
for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin();
i != m_SourceFiles.end(); ++i)
{
if((*i)->GetSourceExtension() != "c" &&
(*i)->GetSourceExtension() != "h")
if(cmSystemTools::GetFileFormat((*i)->GetSourceExtension().c_str())
== cmSystemTools::CXX_FILE_FORMAT)
{
return true;
}