From 55eb94cdbdf1b1fbd6424aa06921bc79123f88cd Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 11 May 2022 13:15:20 +0200 Subject: CMake: Use the PRODUCT_NAME for the iOS display name like qmake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures that the Xcode 'Display name' input under ${target} -> General -> Identity -> Display name is not empty. Because adding ${PRODUCT_NAME} directly in the Info.plist.in template will cause CMake to evaluate it as variable expansion, work around the issue by putting the dollar sign into a separate cache variable that after evaluation will result in ${PRODUCT_NAME} being in the file verbatim, so that Xcode evaluate it at build time. Amends 4d838dae5a821e9e5f013ba1d5a494ece1b5180e Pick-to: 6.2 6.3 Task-number: QTBUG-95838 Change-Id: I2d1090cc8e84b32442f7daca2d4ce5e3ad413c68 Reviewed-by: Jörg Bornemann Reviewed-by: Alexey Edelev --- cmake/ios/MacOSXBundleInfo.plist.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmake') diff --git a/cmake/ios/MacOSXBundleInfo.plist.in b/cmake/ios/MacOSXBundleInfo.plist.in index 5b15af1302..0cecf4ba99 100644 --- a/cmake/ios/MacOSXBundleInfo.plist.in +++ b/cmake/ios/MacOSXBundleInfo.plist.in @@ -4,18 +4,25 @@ CFBundleInfoDictionaryVersion 6.0 + CFBundlePackageType APPL CFBundleName ${MACOSX_BUNDLE_BUNDLE_NAME} + + CFBundleDisplayName + ${QT_INTERNAL_DOLLAR_VAR}{PRODUCT_NAME} + CFBundleIdentifier ${MACOSX_BUNDLE_GUI_IDENTIFIER} + CFBundleExecutable ${MACOSX_BUNDLE_EXECUTABLE_NAME} CFBundleVersion ${MACOSX_BUNDLE_BUNDLE_VERSION} + CFBundleShortVersionString ${MACOSX_BUNDLE_SHORT_VERSION_STRING} -- cgit v1.2.3