Disable KCONFIG_USE_DBUS on Android

Summary: Since DBus is not available on Android we don't ever want it enabled

Test Plan: Builds with simple Android cmake command

Reviewers: apol, vkrause

Reviewed By: vkrause

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D23062
wilder
Nicolas Fella 7 years ago
parent 5d3e71b1d2
commit 710883fbbb
  1. 10
      CMakeLists.txt

@ -18,9 +18,13 @@ if(KCONFIG_USE_GUI)
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Gui)
endif()
option(KCONFIG_USE_DBUS "Build components using Qt5DBus" ON)
if(KCONFIG_USE_DBUS)
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus)
if (NOT ANDROID)
option(KCONFIG_USE_DBUS "Build components using Qt5DBus" ON)
if(KCONFIG_USE_DBUS)
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus)
endif()
else()
set(KCONFIG_USE_DBUS Off)
endif()

Loading…
Cancel
Save