summaryrefslogtreecommitdiff
path: root/multimedia/kmplayer/patches/patch-src_CMakeLists.txt
blob: af0e77840196b94baa641ee461ed573723a69335 (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
$NetBSD: patch-src_CMakeLists.txt,v 1.2 2021/08/31 12:06:22 markd Exp $

From 7dafda636033d23436ea72c45967af78f54d76fb Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Tue, 17 Apr 2018 12:07:04 +0200
Subject: [PATCH] Fix build with Qt 5.11_beta3 (dropping qt5_use_modules)

Test Plan: Built fine with Qt 5.11_beta3.

Reviewers: pino, vriezen

Differential Revision: https://phabricator.kde.org/D12272
---
 src/CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f675d9ae..57af1ed4 100644
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -161,9 +161,9 @@ qt5_add_dbus_adaptor(kphononplayer_SRCS org.kde.kmplayer.streamslave.xml
 
 add_executable(kphononplayer ${kphononplayer_SRCS})
 
-qt5_use_modules(kphononplayer Core DBus Widgets X11Extras)
-
-target_link_libraries(kphononplayer Phonon::phonon4qt5 ${XCB_LIBRARIES})
+target_link_libraries(kphononplayer Phonon::phonon4qt5 ${XCB_LIBRARIES}
+    Qt5::Core Qt5::DBus Qt5::Widgets Qt5::X11Extras
+)
 
 install(TARGETS kphononplayer ${INSTALL_TARGETS_DEFAULT_ARGS})
 
-- 
GitLab