From 42970e490af00cd9baff1c54f4f00d982b21586a Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Tue, 6 Jul 2021 17:55:30 +0200 Subject: CMake: Bump min required CMake version for shared Qt builds to 3.16 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 Reviewed-by: Alexandru Croitor Reviewed-by: Craig Scott Reviewed-by: Qt CI Bot --- .cmake.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.cmake.conf') diff --git a/.cmake.conf b/.cmake.conf index a63f70d6b9..848faeb55d 100644 --- a/.cmake.conf +++ b/.cmake.conf @@ -13,5 +13,5 @@ set(QT_MIN_SUPPORTED_CMAKE_VERSION "3.16") # 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.14") -set(QT_MAX_NEW_POLICY_CMAKE_VERSION "3.19") +set(QT_MIN_NEW_POLICY_CMAKE_VERSION "3.16") +set(QT_MAX_NEW_POLICY_CMAKE_VERSION "3.20") -- cgit v1.2.3