summaryrefslogtreecommitdiff
path: root/kde-apps/ktp-common-internals/files/ktp-common-internals-19.08.3-telepathy-0.9.8.patch
blob: 9cc3b301e0ab7273c5dff105a7366d2a7bd912f4 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From f030b527c4d390ead78d2e56a1655444f97b5545 Mon Sep 17 00:00:00 2001
From: Antonio Rojas <arojas@archlinux.org>
Date: Thu, 14 Nov 2019 20:34:21 +0100
Subject: [PATCH] Fix build with telepathy-qt 0.9.8

Explicitely add the necessary link targets which are no longer exported by telepathy-qt

Differential Revision: https://phabricator.kde.org/D25269
---
 CMakeLists.txt         | 4 +++-
 KTp/CMakeLists.txt     | 2 ++
 KTp/OTR/CMakeLists.txt | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 187400e..2650321 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,8 +20,10 @@ set (KTP_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_M
 set (KTP_MESSAGE_FILTER_FRAMEWORK_VERSION "5")
 
 find_package (Qt5 REQUIRED CONFIG COMPONENTS
+              DBus
               Qml
-              Test)
+              Test
+              Xml)
 
 find_package (KF5 5.11 REQUIRED COMPONENTS
               CoreAddons
diff --git a/KTp/CMakeLists.txt b/KTp/CMakeLists.txt
index 85d578b..ffbce10 100644
--- a/KTp/CMakeLists.txt
+++ b/KTp/CMakeLists.txt
@@ -91,6 +91,8 @@ set_target_properties(KTpCommonInternals PROPERTIES
 
 target_link_libraries (KTpCommonInternals
                 PUBLIC
+                    Qt5::DBus
+                    Qt5::Xml
                     KF5::Wallet #included from wallet-interface.h
                     ${TELEPATHY_QT5_LIBRARIES}
                 PRIVATE
diff --git a/KTp/OTR/CMakeLists.txt b/KTp/OTR/CMakeLists.txt
index 12e28de..0743e25 100644
--- a/KTp/OTR/CMakeLists.txt
+++ b/KTp/OTR/CMakeLists.txt
@@ -28,6 +28,7 @@ generate_export_header(KTpOTR)
 
 target_link_libraries (KTpOTR
                         PUBLIC
+                            Qt5::DBus
                             ${TELEPATHY_QT5_LIBRARIES}
                         PRIVATE
                             KF5::I18n
-- 
2.24.0