summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2021-02-23 18:23:33 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-24 15:33:53 +0000
commitb87a9164531f3965bf1bcbdf2aa7299ddb087a26 (patch)
treea5971f58d32bb3b1fbe941e0dc42797a197a7192 /src/plugins
parent43fe602ea3a58c096536c3ce301668f5fb760d27 (diff)
Disable NetworkManager plugin for -no-dbus
The plugin depends on Qt::DBus, so do not try to configure it if Qt::DBus is not available. Fixes: QTBUG-91155 Change-Id: I70ddca63a277cd57a253092f97160f89ebc76f06 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit ea1c35d5578e978b743350bc6ab7c61c50152ca6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/networkinformationbackends/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/networkinformationbackends/CMakeLists.txt b/src/plugins/networkinformationbackends/CMakeLists.txt
index b1eafa4441..142031c62a 100644
--- a/src/plugins/networkinformationbackends/CMakeLists.txt
+++ b/src/plugins/networkinformationbackends/CMakeLists.txt
@@ -2,7 +2,7 @@ if(WIN32 AND QT_FEATURE_networklistmanager)
add_subdirectory(networklistmanager)
endif()
-if(LINUX)
+if(LINUX AND TARGET Qt::DBus)
add_subdirectory(networkmanager)
endif()