From 3c861a6c3860d516a48c2bed0264da7f39459439 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 20 Mar 2022 23:41:15 +0100 Subject: Disable DBus support on Windows by default This seems to be mostly for workspace-level notifications (ex: color theme changed) which we don't really need on Windows. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34a6dc7c..bd1ea543 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,11 @@ endif() find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} OPTIONAL_COMPONENTS Qml) if (NOT ANDROID) - option(KCONFIG_USE_DBUS "Build components using Qt${QT_MAJOR_VERSION}DBus" ON) + set(default_kconfig_use_dbus ON) + if(WIN32) + set(default_kconfig_use_dbus OFF) + endif() + option(KCONFIG_USE_DBUS "Build components using Qt${QT_MAJOR_VERSION}DBus" ${default_kconfig_use_dbus}) if(KCONFIG_USE_DBUS) find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} CONFIG REQUIRED DBus) endif() -- cgit v1.2.1