diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-20 16:14:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-20 16:14:41 (GMT) |
commit | d712e40d3651dce104579bc1e7441d74712fa951 (patch) | |
tree | a9842dd1eb05a8deca11f22aaa9d70c4bc2baa48 /Source | |
parent | 9267267b68399dfd8667278b19fdc39056650005 (diff) | |
download | CMake-d712e40d3651dce104579bc1e7441d74712fa951.zip CMake-d712e40d3651dce104579bc1e7441d74712fa951.tar.gz CMake-d712e40d3651dce104579bc1e7441d74712fa951.tar.bz2 |
ENH: fix for force language stuff
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 2 |
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); |