summaryrefslogtreecommitdiff
path: root/kde-apps/krfb/files/krfb-21.12.3-optional-wayland.patch
blob: 3c074ad82b1a790e5d1f2cf36be292e11c632288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 4b7985db1b7ba0ef4fa0c5e2a664f0531026d0be Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Thu, 24 Mar 2022 17:12:39 +0100
Subject: [PATCH] Make KF5Wayland optional behind existing DISABLE_PIPEWIRE

We have an option so let's be consistent.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 29218ff..82b02f1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,7 +38,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
     DocTools
     Notifications
     Wallet
-    Wayland
     WidgetsAddons
     WindowSystem
     XmlGui
@@ -90,6 +89,7 @@ add_feature_info(PipeWire PipeWire_FOUND "Required for pipewire screencast plugi
 find_package(PlasmaWaylandProtocols 1.5.0)
 
 if(PipeWire_FOUND AND PlasmaWaylandProtocols_FOUND)
+    find_package(KF5Wayland ${KF5_MIN_VERSION})
     find_package(QtWaylandScanner REQUIRED)
     find_package(Qt5WaylandClient)
     find_package(Qt5XkbCommonSupport)
-- 
2.35.1