summaryrefslogtreecommitdiff
path: root/x11/xwaylandvideobridge/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xwaylandvideobridge/files/patch-CMakeLists.txt')
-rw-r--r--x11/xwaylandvideobridge/files/patch-CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/xwaylandvideobridge/files/patch-CMakeLists.txt b/x11/xwaylandvideobridge/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..f153ed5e2f7b
--- /dev/null
+++ b/x11/xwaylandvideobridge/files/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+Fix configure with Qt 6.10. Private API components must now be found
+with their CMake configs.
+
+--- CMakeLists.txt.orig 2023-12-18 15:32:38 UTC
++++ CMakeLists.txt
+@@ -46,6 +46,9 @@ if (QT_MAJOR_VERSION STREQUAL "6")
+
+ if (QT_MAJOR_VERSION STREQUAL "6")
+ find_package(KF6StatusNotifierItem ${KF_MIN_VERSION} REQUIRED)
++ if (Qt6Gui_VERSION VERSION_GREATER_EQUAL 6.10)
++ find_package(Qt6 6.10 CONFIG REQUIRED COMPONENTS GuiPrivate)
++ endif()
+ endif()
+
+ find_package(XCB COMPONENTS REQUIRED XCB COMPOSITE EVENT RECORD XFIXES)