浏览代码

Merge topic 'xcode-ios-empty-sticker-pack'

0a60d1b6b4 Allow empty source file list for iOS Sticker packs

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5587
Brad King 4 年之前
父节点
当前提交
3c68404c20
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Source/cmGlobalXCodeGenerator.cxx

+ 8 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -1649,6 +1649,14 @@ void cmGlobalXCodeGenerator::ForceLinkerLanguage(cmGeneratorTarget* gtgt)
     }
   }
 
+  // Allow empty source file list for iOS Sticker packs
+  if (const char* productType = GetTargetProductType(gtgt)) {
+    if (strcmp(productType,
+               "com.apple.product-type.app-extension.messages-sticker-pack") ==
+        0)
+      return;
+  }
+
   // Add an empty source file to the target that compiles with the
   // linker language.  This should convince Xcode to choose the proper
   // language.