qt6-bb10/mkspecs/features/mac
Alexandru Croitor a29bff3d80 CMake: Warn when configuring Qt with an unsupported Apple SDK or Xcode
The warnings are shown when configuring any Qt submodule or top-level.
The warnings are NOT shown when configuring a user project with CMake.

Opt out CMake cache variables can be set to silence any of the
warnings:
- QT_NO_APPLE_SDK_AND_XCODE_CHECK
- QT_NO_APPLE_SDK_MIN_VERSION_CHECK
- QT_NO_XCODE_MIN_VERSION_CHECK
- QT_NO_APPLE_SDK_MAX_VERSION_CHECK

The warnings can be upgraded into errors by configuring with
-DQT_FORCE_FATAL_APPLE_SDK_AND_XCODE_CHECK=ON

The platform version requirements that qtbase specifies in .cmake.conf
are saved in Qt6ConfigExtras.cmake so that they can be used when
configuring other non-qtbase submodules.

The code is added to the public CMake files, so that in the future we
don't need to move code around if we enable the checks for public
CMake projects as well.

The version extraction helpers were moved out of QtAutoDetectHelpers
into QtPublicAppleHelpers.

Task-number: QTBUG-119490
Change-Id: Ic840e1013aeb607bf23247a9cb43471dde802e9d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
2023-11-29 16:00:57 +01:00
..
unsupported
asset_catalogs.prf qmake: Fix non-Xcode asset catalog handling for iOS simulator 2022-08-16 15:02:22 +02:00
default_post.prf CMake: Warn when configuring Qt with an unsupported Apple SDK or Xcode 2023-11-29 16:00:57 +01:00
default_pre.prf Fix build of applications on iOS 2018-05-13 08:48:53 +00:00
mac.prf Fix resolution of QMAKE_INFO_PLIST for non-bundle artifacts 2017-10-23 13:50:45 +00:00
no_warn_empty_obj_files.prf macOS: Prevent warnings about object files without any symbols 2019-09-25 15:39:02 +02:00
objective_c.prf
rez.prf
sdk.mk qmake: Ignore stderr when determining the macOS SDK version 2022-03-29 14:56:15 +02:00
sdk.prf Fix determination of OpenGL include paths on macOS, take 3 2019-04-27 07:32:53 +00:00
toolchain.prf