From 710883fbbb0ae02ded91c7df9bc1767c8046e4b3 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 9 Aug 2019 23:42:51 +0200 Subject: 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 --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d72e5740..24e29795 100644 --- a/CMakeLists.txt +++ b/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() -- cgit v1.2.1