diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-11-02 08:53:35 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-11-06 17:17:21 +0100 |
commit | 28be349bd7b4d20c5f44815c1c7d1ba668aa1f0b (patch) | |
tree | 9dda4733022d98d6d0473c5b5610d6c6188651cd /CMakeLists.txt | |
parent | 7ccc1420f29ae2a91439803941e89b82ff3bc071 (diff) | |
download | qt5-28be349bd7b4d20c5f44815c1c7d1ba668aa1f0b.tar.gz |
CMake: Bump the minimum required CMake version to 3.18
This is the top-level counterpart change that uses the infra
introduced in qtbase.
Task-number: QTBUG-88086
Change-Id: I2524cd88da43cffb2b3742caedd1cd2f3130dff5
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b4d37123..2cd120be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,10 @@ set(__qt6_qtbase_src_path "${CMAKE_CURRENT_SOURCE_DIR}/qtbase") -cmake_minimum_required(VERSION 3.15.0) +include("${__qt6_qtbase_src_path}/.cmake.conf") +include("${__qt6_qtbase_src_path}/cmake/QtCMakeVersionHelpers.cmake") +qt_internal_check_for_suitable_cmake_version() +qt_internal_get_computed_minimum_cmake_version(__qt_minimum_cmake_version) +cmake_minimum_required(VERSION ${__qt_minimum_cmake_version}) include("${__qt6_qtbase_src_path}/cmake/QtAutoDetect.cmake") |