From 72d40f696e8f4540740992d30cd80a4a34fce462 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 29 Jan 2025 15:34:52 +0100 Subject: [PATCH] Fix build with Qt 6.10 The private parts have been extracted into a separate CMake config file, which we need to search for now See https://bugreports.qt.io/browse/QTBUG-87776 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a96bfc..5d6e0a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,11 @@ include(ECMQmlModule) include(KDEGitCommitHooks) find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS WaylandClient Qml) + +if (Qt6WaylandClient_VERSION VERSION_GREATER_EQUAL "6.10.0") + find_package(Qt6WaylandClientPrivate ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) +endif() + find_package(WaylandScanner REQUIRED) find_package(Wayland 1.3 COMPONENTS Client Server) find_package(WaylandProtocols REQUIRED)