diff options
author | David Faure <faure@kde.org> | 2022-03-20 23:41:15 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2022-03-20 23:41:15 +0100 |
commit | 3c861a6c3860d516a48c2bed0264da7f39459439 (patch) | |
tree | db7427df19a7ff96f5c75e04c4785bf198e04b53 /CMakeLists.txt | |
parent | 7206ba3f6c92892bff65c616084b3bf4c2ef86a0 (diff) | |
download | kconfig-3c861a6c3860d516a48c2bed0264da7f39459439.tar.gz kconfig-3c861a6c3860d516a48c2bed0264da7f39459439.tar.bz2 |
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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() |