浏览代码

Xcode: Set source file type for Objective C/C++

Fixes: #19998
Brad King 6 年之前
父节点
当前提交
1e68fb0c91
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/cmGlobalXCodeGenerator.cxx

+ 4 - 0
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") {