diff options
author | Brad King <brad.king@kitware.com> | 2020-12-09 14:16:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-12-09 14:16:34 (GMT) |
commit | 3c68404c20d05cb34a32a95a95d59fd1019dbb44 (patch) | |
tree | 2b58c4e942303698aa91f229975962e82cc30701 | |
parent | 2236e910b6cf112130e3bde47f1f373b466813e3 (diff) | |
parent | 0a60d1b6b40cac329f24d7f1d754c17d9a23a6ca (diff) | |
download | CMake-3c68404c20d05cb34a32a95a95d59fd1019dbb44.zip CMake-3c68404c20d05cb34a32a95a95d59fd1019dbb44.tar.gz CMake-3c68404c20d05cb34a32a95a95d59fd1019dbb44.tar.bz2 |
Merge topic 'xcode-ios-empty-sticker-pack'
0a60d1b6b4 Allow empty source file list for iOS Sticker packs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5587
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 17d1790..70aa052 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/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. |