diff options
author | Nicolas Fella <nicolas.fella@gmx.de> | 2019-08-09 23:42:51 +0200 |
---|---|---|
committer | Nicolas Fella <nicolas.fella@gmx.de> | 2019-08-10 12:14:05 +0200 |
commit | 710883fbbb0ae02ded91c7df9bc1767c8046e4b3 (patch) | |
tree | 59a6d8bdbfe6667ac0c98167ec63fc3914c49faf | |
parent | 5d3e71b1d2ecd2cb2f910036e614ffdfc895aa22 (diff) | |
download | kconfig-710883fbbb0ae02ded91c7df9bc1767c8046e4b3.tar.gz kconfig-710883fbbb0ae02ded91c7df9bc1767c8046e4b3.tar.bz2 |
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
-rw-r--r-- | CMakeLists.txt | 10 |
1 files 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() |