From c0e7994802b4a894a922a6a61b58b4382de398fc Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 31 Jan 2020 04:41:50 +0400 Subject: [PATCH] glib dependency is needed for hime only --- external/qt/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/external/qt/CMakeLists.txt b/external/qt/CMakeLists.txt index a1f7834..64cf0c3 100644 --- a/external/qt/CMakeLists.txt +++ b/external/qt/CMakeLists.txt @@ -243,11 +243,14 @@ else() X11 X11-xcb dl - glib-2.0 pthread ) + if (Qt5DBus_FOUND) + # needed for hime only + target_link_libraries(external_qt INTERFACE glib-2.0) + endif() find_library(DBUS_LIBRARY dbus-1) - if (DBUS_LIBRARY) + if (Qt5DBus_FOUND AND DBUS_LIBRARY) target_link_libraries(external_qt INTERFACE dbus-1) endif() endif()