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
1 changed files with 1 additions and 1 deletions

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)