Browse Source

ENH: fix for force language stuff

Bill Hoffman 18 years ago
parent
commit
d712e40d36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmGlobalXCodeGenerator.cxx

+ 1 - 1
Source/cmGlobalXCodeGenerator.cxx

@@ -485,7 +485,7 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
   buildFile->AddAttribute("settings", settings);
   fileRef->AddAttribute("fileEncoding", this->CreateString("4"));
   const char* lang = 
-    this->GetLanguageFromExtension(sf->GetSourceExtension().c_str());
+    this->CurrentLocalGenerator->GetSourceFileLanguage(*sf);
   std::string sourcecode = "sourcecode";
   std::string ext = sf->GetSourceExtension();
   ext = cmSystemTools::LowerCase(ext);