Silence the missing BundleIdentifier warning for non-Xcode generators

It's a bit excessive to warn every developer about this, especially if
they are using non-Xcode generators; besides, we are already generating
a bundle identifier if it is missing anyway.

Pick-to: 6.5 6.6
Change-Id: Ib11ad51a0e516e0ea61ad2f7bf499b846bc0b792
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Amir Masoud Abdol 2023-07-06 14:41:00 +02:00
parent 68043e2ca9
commit 594b932c58

View File

@ -283,13 +283,15 @@ function(_qt_internal_get_default_apple_bundle_identifier target out_var)
string(APPEND prefix ".${infix}") string(APPEND prefix ".${infix}")
endif() endif()
message(WARNING if(CMAKE_GENERATOR STREQUAL "Xcode")
"No organization bundle identifier prefix could be retrieved from Xcode preferences. \ message(WARNING
This can lead to code signing issues due to a non-unique bundle \ "No organization bundle identifier prefix could be retrieved from Xcode preferences. \
identifier. Please set up an organization prefix by creating a new project within \ This can lead to code signing issues due to a non-unique bundle \
Xcode, or consider providing a custom bundle identifier by specifying the \ identifier. Please set up an organization prefix by creating a new project within \
MACOSX_BUNDLE_GUI_IDENTIFIER or XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER property." Xcode, or consider providing a custom bundle identifier by specifying the \
) MACOSX_BUNDLE_GUI_IDENTIFIER or XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER property."
)
endif()
endif() endif()
# Escape the prefix according to rfc 1034, it's important for code-signing. If an invalid # Escape the prefix according to rfc 1034, it's important for code-signing. If an invalid