summaryrefslogtreecommitdiffstats
path: root/src/plugins/networkinformationbackends
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2021-02-23 18:23:33 +0200
committerKai Koehne <kai.koehne@qt.io>2021-02-24 11:59:02 +0000
commitea1c35d5578e978b743350bc6ab7c61c50152ca6 (patch)
treeefbbdcb6e72ec445f344bca2e37fbc5858f41b54 /src/plugins/networkinformationbackends
parente8c52d0e8ce617c49bcd76ca542eaa024d2f1d08 (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. Pick-to: 6.1 Fixes: QTBUG-91155 Change-Id: I70ddca63a277cd57a253092f97160f89ebc76f06 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/networkinformationbackends')
-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()