diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-21 08:31:55 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-25 07:59:08 +0200 |
commit | ea351c5d53e34d3d1daf71de5eb73ba6e03e552a (patch) | |
tree | 96083a364bbedc468e7869adefdec552d8950e7f | |
parent | 9adf4809460737576430c5d250288db628f18f0e (diff) |
Build system: Bump versions
State CMake 3.18+ and Python >= 3.7
Task-number: PYSIDE-2091
Pick-to: 6.4
Change-Id: Iad906a48bf4378ceeeebe5a55aeaa3f27ea0a61f
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
20 files changed, 30 insertions, 34 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e17f259b1..6f26b15f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) set(CMAKE_BUILD_TYPE Release CACHE STRING "Build Type") diff --git a/examples/samplebinding/CMakeLists.txt b/examples/samplebinding/CMakeLists.txt index 665316623..896b3610c 100644 --- a/examples/samplebinding/CMakeLists.txt +++ b/examples/samplebinding/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) # Enable policy to not use RPATH settings for install_name on macOS. if(POLICY CMP0068) diff --git a/examples/scriptableapplication/CMakeLists.txt b/examples/scriptableapplication/CMakeLists.txt index 430932815..af6d11a27 100644 --- a/examples/scriptableapplication/CMakeLists.txt +++ b/examples/scriptableapplication/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) # Enable policy to run automoc on generated files. if(POLICY CMP0071) diff --git a/examples/widgetbinding/CMakeLists.txt b/examples/widgetbinding/CMakeLists.txt index c51f47620..4f110f57e 100644 --- a/examples/widgetbinding/CMakeLists.txt +++ b/examples/widgetbinding/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) # Enable policy to not use RPATH settings for install_name on macOS. if(POLICY CMP0068) diff --git a/sources/pyside-tools/CMakeLists.txt b/sources/pyside-tools/CMakeLists.txt index 002cf3fc8..13fd752d2 100644 --- a/sources/pyside-tools/CMakeLists.txt +++ b/sources/pyside-tools/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) project(pyside-tools) include(cmake/PySideToolsSetup.cmake) diff --git a/sources/pyside6/CMakeLists.txt b/sources/pyside6/CMakeLists.txt index 926f5aff8..7dd242828 100644 --- a/sources/pyside6/CMakeLists.txt +++ b/sources/pyside6/CMakeLists.txt @@ -1,7 +1,7 @@ include(cmake/Macros/icecc.cmake) # this must be the first line! -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) include(".cmake.conf") project(pysidebindings) diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt index 819db870a..d34acbedd 100644 --- a/sources/pyside6/doc/CMakeLists.txt +++ b/sources/pyside6/doc/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) project(doc) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../shiboken6/cmake") diff --git a/sources/pyside6/tests/pysidetest/CMakeLists.txt b/sources/pyside6/tests/pysidetest/CMakeLists.txt index f7df67751..81fae5084 100644 --- a/sources/pyside6/tests/pysidetest/CMakeLists.txt +++ b/sources/pyside6/tests/pysidetest/CMakeLists.txt @@ -1,7 +1,7 @@ project(pysidetest) project(testbinding) -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) set(QT_USE_QTCORE 1) # no more supported: include(${QT_USE_FILE}) diff --git a/sources/shiboken6/ApiExtractor/CMakeLists.txt b/sources/shiboken6/ApiExtractor/CMakeLists.txt index 0f6ca247b..936def4a0 100644 --- a/sources/shiboken6/ApiExtractor/CMakeLists.txt +++ b/sources/shiboken6/ApiExtractor/CMakeLists.txt @@ -1,7 +1,7 @@ project(apiextractor) -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) set(CMAKE_AUTOMOC ON) diff --git a/sources/shiboken6/CMakeLists.txt b/sources/shiboken6/CMakeLists.txt index a6ed7681b..2f7b23835 100644 --- a/sources/shiboken6/CMakeLists.txt +++ b/sources/shiboken6/CMakeLists.txt @@ -1,7 +1,7 @@ Include(icecc.cmake) -cmake_minimum_required(VERSION 3.16) -cmake_policy(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) +cmake_policy(VERSION 3.18) set(CMAKE_BUILD_TYPE Release CACHE STRING "Build Type") diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake index 8dcaaf1f1..387568726 100644 --- a/sources/shiboken6/cmake/ShibokenHelpers.cmake +++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake @@ -339,9 +339,9 @@ macro(shiboken_find_required_python) endmacro() macro(shiboken_validate_python_version) - if(PYTHON_VERSION_MAJOR EQUAL "3" AND PYTHON_VERSION_MINOR LESS "5") + if(PYTHON_VERSION_MAJOR EQUAL "3" AND PYTHON_VERSION_MINOR LESS "7") message(FATAL_ERROR - "Shiboken requires Python 3.5+.") + "Shiboken requires Python 3.7+.") endif() endmacro() diff --git a/sources/shiboken6/cmake/ShibokenSetup.cmake b/sources/shiboken6/cmake/ShibokenSetup.cmake index 5393c3d77..703a72258 100644 --- a/sources/shiboken6/cmake/ShibokenSetup.cmake +++ b/sources/shiboken6/cmake/ShibokenSetup.cmake @@ -10,12 +10,8 @@ option(DISABLE_DOCSTRINGS "Disable documentation extraction." FALSE) shiboken_internal_disable_pkg_config_if_needed() shiboken_internal_detect_if_cross_building() -if(SHIBOKEN_IS_CROSS_BUILD AND CMAKE_VERSION VERSION_LESS "3.17") - # TODO: We rely on FindPython shipped with CMake 3.17+ to provide the value of Python_SOABI. - # It might be possible to extract the Python_SOABI manually with CMake 3.16 if we reimplement - # the logic that FindPython does in 3.17 ourselves. - message(FATAL_ERROR "You need CMake version 3.17 or greater to cross-build.") -endif() +# Note: For cross building, we rely on FindPython shipped with CMake 3.17+ to +# provide the value of Python_SOABI. shiboken_internal_decide_parts_to_build() shiboken_internal_find_host_shiboken_tools() diff --git a/sources/shiboken6/config.tests/target_python_info/CMakeLists.txt b/sources/shiboken6/config.tests/target_python_info/CMakeLists.txt index 55fafb7c3..5ff4c253d 100644 --- a/sources/shiboken6/config.tests/target_python_info/CMakeLists.txt +++ b/sources/shiboken6/config.tests/target_python_info/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) project(proj LANGUAGES CXX) include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/ShibokenHelpers.cmake") diff --git a/sources/shiboken6/config.tests/target_qt_info/CMakeLists.txt b/sources/shiboken6/config.tests/target_qt_info/CMakeLists.txt index bb0e11b9e..be4d111dc 100644 --- a/sources/shiboken6/config.tests/target_qt_info/CMakeLists.txt +++ b/sources/shiboken6/config.tests/target_qt_info/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) project(proj LANGUAGES CXX) include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/ShibokenHelpers.cmake") diff --git a/sources/shiboken6/config.tests/target_qt_mkspec/CMakeLists.txt b/sources/shiboken6/config.tests/target_qt_mkspec/CMakeLists.txt index 033369188..526570a9c 100644 --- a/sources/shiboken6/config.tests/target_qt_mkspec/CMakeLists.txt +++ b/sources/shiboken6/config.tests/target_qt_mkspec/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) project(dummy LANGUAGES CXX) include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/ShibokenHelpers.cmake") diff --git a/sources/shiboken6/doc/CMakeLists.txt b/sources/shiboken6/doc/CMakeLists.txt index 0f909b3c5..65b3d4eef 100644 --- a/sources/shiboken6/doc/CMakeLists.txt +++ b/sources/shiboken6/doc/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) if(FULLDOCSBUILD EQUAL 0) project(shiboken6_doc) diff --git a/sources/shiboken6/tests/CMakeLists.txt b/sources/shiboken6/tests/CMakeLists.txt index 296f8d8d7..c1fca5134 100644 --- a/sources/shiboken6/tests/CMakeLists.txt +++ b/sources/shiboken6/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) if(BUILD_TESTS) find_package(Qt${QT_MAJOR_VERSION}Test 6.0 REQUIRED) diff --git a/sources/shiboken6/tests/qtxmltosphinx/CMakeLists.txt b/sources/shiboken6/tests/qtxmltosphinx/CMakeLists.txt index cc73ac727..ff9207350 100644 --- a/sources/shiboken6/tests/qtxmltosphinx/CMakeLists.txt +++ b/sources/shiboken6/tests/qtxmltosphinx/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) # Standalone-buildable diff --git a/sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt b/sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt index 940a171b5..7b3f354ee 100644 --- a/sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt +++ b/sources/shiboken6/tests/qtxmltosphinxtest/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) project(qtxmltosphinxtest) diff --git a/sources/shiboken6/tests/test_generator/CMakeLists.txt b/sources/shiboken6/tests/test_generator/CMakeLists.txt index b48ae37da..c6a7ec579 100644 --- a/sources/shiboken6/tests/test_generator/CMakeLists.txt +++ b/sources/shiboken6/tests/test_generator/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.18) project(test_generator) set(dummy_generator_SRC dummygenerator.cpp) |