Преглед изворни кода

ENH: change ignore function so that it first checks to see if the extension has a language

Bill Hoffman пре 21 година
родитељ
комит
9e08d07be2
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Source/cmGlobalGenerator.cxx

+ 4 - 0
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);
 }