diff options
author | Brad King <brad.king@kitware.com> | 2019-11-20 14:43:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-11-20 14:43:00 (GMT) |
commit | 1e68fb0c91dd3f4fa64053601e878b1ffde1b439 (patch) | |
tree | 43c056e4e54b85bbde8ed61576a48259b7e7c2b0 /Source/cmGlobalXCodeGenerator.cxx | |
parent | d25d75687d3fe53ab19b61b5d671c83d8203f15c (diff) | |
download | CMake-1e68fb0c91dd3f4fa64053601e878b1ffde1b439.zip CMake-1e68fb0c91dd3f4fa64053601e878b1ffde1b439.tar.gz CMake-1e68fb0c91dd3f4fa64053601e878b1ffde1b439.tar.bz2 |
Xcode: Set source file type for Objective C/C++
Fixes: #19998
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 6cbd4f3..3002b2a 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -942,6 +942,10 @@ std::string GetSourcecodeValueFromFileExtension(const std::string& _ext, sourcecode += ".cpp.cpp"; } else if (lang == "C") { sourcecode += ".c.c"; + } else if (lang == "OBJCXX") { + sourcecode += ".cpp.objcpp"; + } else if (lang == "OBJC") { + sourcecode += ".c.objc"; } else if (lang == "Fortran") { sourcecode += ".fortran.f90"; } else if (lang == "ASM") { |