summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-11-21 16:27:18 +0000
committerKitware Robot <kwrobot@kitware.com>2019-11-21 11:27:25 -0500
commit602f2118b083f998cd7523efcdd5f39689eb15ac (patch)
treeafb62e2fde5674cce60331f28000969a0f6263df
parent2a2c890023c7cfc643d8390a07bffe7676556b32 (diff)
parent1e68fb0c91dd3f4fa64053601e878b1ffde1b439 (diff)
downloadcmake-602f2118b083f998cd7523efcdd5f39689eb15ac.tar.gz
Merge topic 'xcode-objc' into release-3.16
1e68fb0c91 Xcode: Set source file type for Objective C/C++ Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4073
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 6cbd4f3ecb..3002b2a68c 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") {