diff options
author | Andrew Shaitorov <andrew.shaitorov@gmail.com> | 2020-12-06 16:31:26 (GMT) |
---|---|---|
committer | Andrew Shaitorov <andrew.shaitorov@gmail.com> | 2020-12-06 16:31:26 (GMT) |
commit | 0a60d1b6b40cac329f24d7f1d754c17d9a23a6ca (patch) | |
tree | 99e56c335ef151aee33fd1749df2499444b7d35f | |
parent | 0ab0fe64acccdb8c8258b9887001da574441fb40 (diff) | |
download | CMake-0a60d1b6b40cac329f24d7f1d754c17d9a23a6ca.zip CMake-0a60d1b6b40cac329f24d7f1d754c17d9a23a6ca.tar.gz CMake-0a60d1b6b40cac329f24d7f1d754c17d9a23a6ca.tar.bz2 |
Allow empty source file list for iOS Sticker packs
-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. |