CMake: Bump the minimum required CMake version to use Qt to 3.14

At the moment our examples require a minimum of 3.14 due to changes
in upstream CMake's Autogen functionatlity to support Qt 6. Anything
lower would simply not work with Qt 6.

It's not clear yet if we actually want to require 3.14, or something
higher. At the very least there were many significant changes to
support iOS in CMake 3.15.

But for now just bump the version checked by Qt6Config.cmake to be
consistent with what's in our examples.

Task-number: QTBUG-88086
Change-Id: I119c2ad05a18c357fe7c659b30685af87475fc84
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This commit is contained in:
Alexandru Croitor 2020-11-02 09:19:35 +01:00
parent 4b694032df
commit b54dd671aa

View File

@ -11,8 +11,8 @@ if (CMAKE_CROSSCOMPILING AND CMAKE_SYSROOT)
endif()
# Slightly amended version of ./src/corelib/Qt6Config.cmake.in
if (CMAKE_VERSION VERSION_LESS 3.1.0)
message(FATAL_ERROR "Qt requires at least CMake version 3.1.0")
if (CMAKE_VERSION VERSION_LESS 3.14)
message(FATAL_ERROR "Qt requires at least CMake version 3.14")
endif()
get_filename_component(_qt_cmake_dir "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)