42970e490a
Building a shared library Qt configuration already required a minimum CMake version of 3.16, because we depend on CMake's Autogen.json files which are used for metatype.json file generation. If a lower version was used, a FATAL_ERROR was issued in qt6_extract_metatypes. This change is essentially moving the check to happen earlier in the qtbase configure process. User projects will now /also/ officially require a minimum of 3.16 (up from 3.14). As a consequence, the min/max version policy range that is set in the public QtFooConfig.cmake files is changed from 3.14..3.19 to 3.16..3.20 The upper bound is raised because building and using Qt works fine with all CMake 3.20 policies set to NEW. [ChangeLog][CMake] Building Qt as shared libraries now requires CMake version 3.16 or later. Building user projects with CMake using that Qt installation also requires a CMake version of 3.16 or later. Pick-to: 6.2 Task-number: QTBUG-95018 Change-Id: I77d2829370f1dfc90b4071bebc8a3ade654e59e6 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Craig Scott <craig.scott@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
18 lines
822 B
Plaintext
18 lines
822 B
Plaintext
set(QT_REPO_MODULE_VERSION "6.2.0")
|
|
set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1")
|
|
|
|
# Minimum requirement for building Qt
|
|
set(QT_MIN_SUPPORTED_CMAKE_VERSION "3.16")
|
|
|
|
# Policy settings for commands defined by qtbase. These will also be injected
|
|
# into the top level policy scope of each Qt module when building Qt so that
|
|
# modules have the same policy settings as qtbase by default. They can be
|
|
# overridden by individual Qt modules in their own .cmake.conf files if needed.
|
|
#
|
|
# NOTE: These two values are also hard-coded in QtBuildInternalsConfig.cmake
|
|
# because that file is used in-place by a superbuild, so there is no
|
|
# opportunity for substituting the values from here. Keep both locations
|
|
# in sync.
|
|
set(QT_MIN_NEW_POLICY_CMAKE_VERSION "3.16")
|
|
set(QT_MAX_NEW_POLICY_CMAKE_VERSION "3.20")
|