summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-02-20 16:14:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-02-20 16:14:41 (GMT)
commitd712e40d3651dce104579bc1e7441d74712fa951 (patch)
treea9842dd1eb05a8deca11f22aaa9d70c4bc2baa48 /Source/cmGlobalXCodeGenerator.cxx
parent9267267b68399dfd8667278b19fdc39056650005 (diff)
downloadCMake-d712e40d3651dce104579bc1e7441d74712fa951.zip
CMake-d712e40d3651dce104579bc1e7441d74712fa951.tar.gz
CMake-d712e40d3651dce104579bc1e7441d74712fa951.tar.bz2
ENH: fix for force language stuff
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 7d9f7dc..f86ee7a 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/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);