diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2023-11-28 15:04:16 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2023-11-29 16:00:57 +0100 |
commit | a29bff3d80219f54d0837b0e6e0577192011dea1 (patch) | |
tree | 504e37b115e0ec8b30ba472852eeb596309c1369 /.cmake.conf | |
parent | ba9d45088f966430a814e7af36a8e7657d61e6db (diff) |
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>
Diffstat (limited to '.cmake.conf')
-rw-r--r-- | .cmake.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.cmake.conf b/.cmake.conf index 9e1d227e1c..96c28affff 100644 --- a/.cmake.conf +++ b/.cmake.conf @@ -36,3 +36,13 @@ set(QT_SUPPORTED_MIN_CMAKE_VERSION_FOR_USING_QT_APPLE "3.21") # in sync. set(QT_MIN_NEW_POLICY_CMAKE_VERSION "3.16") set(QT_MAX_NEW_POLICY_CMAKE_VERSION "3.21") + +# These should be updated together with the documentation in +# qtdoc/doc/src/platforms/supported-platforms.qdocinc +set(QT_SUPPORTED_MIN_MACOS_SDK_VERSION "13") +set(QT_SUPPORTED_MAX_MACOS_SDK_VERSION "14") +set(QT_SUPPORTED_MIN_MACOS_XCODE_VERSION "14") + +set(QT_SUPPORTED_MIN_IOS_SDK_VERSION "16") +set(QT_SUPPORTED_MAX_IOS_SDK_VERSION "17") +set(QT_SUPPORTED_MIN_IOS_XCODE_VERSION "14") |