1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-24 08:42:51 +01:00

Only check for dbus on x11

This commit is contained in:
John Maguire 2019-11-14 20:51:51 +00:00
parent 708a989db7
commit e2ab832caf

View File

@ -90,9 +90,9 @@ find_path(SPARSEHASH_INCLUDE_DIRS google/sparsetable)
# QT
set(QT_MIN_VERSION 5.6.0)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Concurrent Widgets Network Sql Xml OpenGL Test)
find_package(Qt5DBus ${QT_MIN_VERSION})
if(HAVE_X11)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS X11Extras)
find_package(Qt5DBus ${QT_MIN_VERSION})
endif()
if(APPLE)
find_package(Qt5 REQUIRED COMPONENTS MacExtras)