aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/cmake/PySideSetup.cmake
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-29 14:42:24 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-29 17:57:32 +0100
commitc199b64bcbcaeb55ce78ce3f4e772fcdc68073f4 (patch)
tree4c0a2f4adbe9091d07c75ded35c3547b2702892d /sources/pyside6/cmake/PySideSetup.cmake
parentb9af02ccb123be3ec4d7ec47b592b3722e7eb1bf (diff)
Build system: Use modern form of finding and linking Qt libraries
Pick-to: 6.4 Task-number: PYSIDE-962 Change-Id: I91aed62a8e14bbc1101b4f23e25f57a5d6bca173 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/pyside6/cmake/PySideSetup.cmake')
-rw-r--r--sources/pyside6/cmake/PySideSetup.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/cmake/PySideSetup.cmake b/sources/pyside6/cmake/PySideSetup.cmake
index 43d042aef..a4ec74d44 100644
--- a/sources/pyside6/cmake/PySideSetup.cmake
+++ b/sources/pyside6/cmake/PySideSetup.cmake
@@ -90,7 +90,7 @@ if(QFP_QT_HOST_PATH)
endif()
endif()
endif()
-find_package(Qt${QT_MAJOR_VERSION} 6.0 REQUIRED COMPONENTS Core)
+find_package(Qt6 REQUIRED COMPONENTS Core)
add_definitions(${Qt${QT_MAJOR_VERSION}Core_DEFINITIONS})
@@ -177,7 +177,7 @@ foreach(m ${DISABLED_MODULES})
endforeach()
# Whether to add libpysideqml
-find_package(Qt${QT_MAJOR_VERSION}Qml)
+find_package(Qt6 COMPONENTS Qml)
string(REGEX MATCHALL "[0-9]+" qt_version_helper "${Qt${QT_MAJOR_VERSION}Core_VERSION}")
@@ -227,5 +227,5 @@ if(SANITIZE_ADDRESS AND NOT MSVC)
setup_sanitize_address()
endif()
-find_package(Qt${QT_MAJOR_VERSION}Designer)
+find_package(Qt6 COMPONENTS Designer)