diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-04-06 23:00:32 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-04-07 15:31:43 +0200 |
commit | 59345eeef93d5bbd1af55426e2edf1963dcfb90c (patch) | |
tree | 2ae429f0150aef6d8e999eca0303aa847b671497 /sources | |
parent | 985ee0b6e55bc116f287ff2a09265fd3ef629f37 (diff) |
cmake: bump general Qt minimum version
The main cmake files for pyside/shiboken still have
minimum versions pointing to version <6.0.0 which
is not valid anymore.
Pick-to: 6.0
Change-Id: Iffebec1e6782e627fc6b3a0c9e16bce7864e250f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources')
-rw-r--r-- | sources/cmake_helpers/helpers.cmake | 2 | ||||
-rw-r--r-- | sources/pyside6/CMakeLists.txt | 2 | ||||
-rw-r--r-- | sources/shiboken6/ApiExtractor/CMakeLists.txt | 4 | ||||
-rw-r--r-- | sources/shiboken6/CMakeLists.txt | 2 | ||||
-rw-r--r-- | sources/shiboken6/tests/CMakeLists.txt | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/sources/cmake_helpers/helpers.cmake b/sources/cmake_helpers/helpers.cmake index 6160cab9a..b80c14bb8 100644 --- a/sources/cmake_helpers/helpers.cmake +++ b/sources/cmake_helpers/helpers.cmake @@ -48,7 +48,7 @@ if(WIN32) list(APPEND ALL_OPTIONAL_MODULES AxContainer) endif() list(APPEND ALL_OPTIONAL_MODULES WebChannel WebEngineCore WebEngine WebEngineWidgets WebSockets) -if (Qt${QT_MAJOR_VERSION}Core_VERSION VERSION_GREATER 5.9.3) # Depending on fixes in Qt3D +if (Qt${QT_MAJOR_VERSION}Core_VERSION VERSION_GREATER 6.0.2) list(APPEND ALL_OPTIONAL_MODULES 3DCore 3DRender 3DInput 3DLogic 3DAnimation 3DExtras) endif() if(WIN32) diff --git a/sources/pyside6/CMakeLists.txt b/sources/pyside6/CMakeLists.txt index d183257af..39795bb33 100644 --- a/sources/pyside6/CMakeLists.txt +++ b/sources/pyside6/CMakeLists.txt @@ -79,7 +79,7 @@ if (SHIBOKEN_PYTHON_LIMITED_API) message(STATUS "******************************************************") endif() -find_package(Qt${QT_MAJOR_VERSION} 5.12 REQUIRED COMPONENTS Core) +find_package(Qt${QT_MAJOR_VERSION} 6.0 REQUIRED COMPONENTS Core) add_definitions(${Qt${QT_MAJOR_VERSION}Core_DEFINITIONS}) option(BUILD_TESTS "Build tests." TRUE) diff --git a/sources/shiboken6/ApiExtractor/CMakeLists.txt b/sources/shiboken6/ApiExtractor/CMakeLists.txt index 04c410608..48bc3abbc 100644 --- a/sources/shiboken6/ApiExtractor/CMakeLists.txt +++ b/sources/shiboken6/ApiExtractor/CMakeLists.txt @@ -42,7 +42,7 @@ parser/enumvalue.cpp xmlutils.cpp ) -find_package(Qt${QT_MAJOR_VERSION}Xml 5.12) +find_package(Qt${QT_MAJOR_VERSION}Xml 6.0) find_package(LibXml2 2.6.32) find_package(LibXslt 1.1.19) @@ -88,7 +88,7 @@ target_compile_definitions(apiextractor PRIVATE CMAKE_CXX_COMPILER="${CMAKE_CXX_ set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" FORCE) if (BUILD_TESTS) - find_package(Qt${QT_MAJOR_VERSION}Test 5.12 REQUIRED) + find_package(Qt${QT_MAJOR_VERSION}Test 6.0 REQUIRED) set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/tests) enable_testing() add_subdirectory(tests) diff --git a/sources/shiboken6/CMakeLists.txt b/sources/shiboken6/CMakeLists.txt index 8e3d6d93f..3b7418e88 100644 --- a/sources/shiboken6/CMakeLists.txt +++ b/sources/shiboken6/CMakeLists.txt @@ -20,7 +20,7 @@ option(DISABLE_DOCSTRINGS "Disable documentation extraction." FALSE) set (QT_MAJOR_VERSION 6) message(STATUS "Using Qt ${QT_MAJOR_VERSION}") -find_package(Qt${QT_MAJOR_VERSION} 5.12 REQUIRED COMPONENTS Core) +find_package(Qt${QT_MAJOR_VERSION} 6.0 REQUIRED COMPONENTS Core) if (QUIET_BUILD) set_quiet_build() diff --git a/sources/shiboken6/tests/CMakeLists.txt b/sources/shiboken6/tests/CMakeLists.txt index 76b94d4c1..bfa92e229 100644 --- a/sources/shiboken6/tests/CMakeLists.txt +++ b/sources/shiboken6/tests/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.16) if(BUILD_TESTS) - find_package(Qt${QT_MAJOR_VERSION}Test 5.12 REQUIRED) + find_package(Qt${QT_MAJOR_VERSION}Test 6.0 REQUIRED) endif() add_subdirectory(libminimal) |