diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-03-22 19:00:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-03-22 19:00:57 (GMT) |
commit | 987c7a094f970d0efdd46c8f83c6e54eb0e54a94 (patch) | |
tree | 4d1d12263f73b44559e05b43131daa16344e2b58 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 89b31c4f816fb0e1e72cd3b0190528b48d920dbf (diff) | |
download | CMake-987c7a094f970d0efdd46c8f83c6e54eb0e54a94.zip CMake-987c7a094f970d0efdd46c8f83c6e54eb0e54a94.tar.gz CMake-987c7a094f970d0efdd46c8f83c6e54eb0e54a94.tar.bz2 |
ENH: try to handle more source file types
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index b9d88a4..583459a 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -364,19 +364,24 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg, const char* lang = this->GetLanguageFromExtension(sf->GetSourceExtension().c_str()); std::string sourcecode = "sourcecode"; - if(sf->GetSourceExtension() == "o") + std::string ext = sf->GetSourceExtension(); + ext = cmSystemTools::LowerCase(ext); + if(ext == "o") { sourcecode = "compiled.mach-o.objfile"; } - else if(sf->GetSourceExtension() == "mm") + else if(ext == "mm") { sourcecode += ".cpp.objcpp"; } + else if(ext == "m") + { + sourcecode += ".cpp.objc"; + } else if(!lang) { - std::string ext = "."; - ext = sf->GetSourceExtension(); sourcecode += ext; + sourcecode += "."; sourcecode += ext; } else if(strcmp(lang, "C") == 0) |