Browse Source

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 years ago
parent
commit
3c68404c20
1 changed files with 8 additions and 0 deletions
  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.