ENH: ignore all files that we do not know about just like in ide generators

This commit is contained in:
Bill Hoffman 2006-04-20 21:54:35 -04:00
parent 03cee03f67
commit 2a335ae748

View File

@ -245,9 +245,7 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(cmSourceFile& source)
const char* lang = this->LocalGenerator->GetSourceFileLanguage(source); const char* lang = this->LocalGenerator->GetSourceFileLanguage(source);
if(!lang) if(!lang)
{ {
// If language is not known, this is an error. // don't know anything about this file so skip it
cmSystemTools::Error("Source file \"", source.GetFullPath().c_str(),
"\" has unknown type.");
return; return;
} }