diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index e95bb5ef39..098c9c93ec 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -397,6 +397,10 @@ void cmGlobalGenerator::SetLanguageEnabled(const char* l, cmMakefile* mf) } bool cmGlobalGenerator::IgnoreFile(const char* l) { + if(this->GetLanguageFromExtension(l)) + { + return false; + } return (m_IgnoreExtensions.count(l) > 0); }