aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt10
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()