From ea1c35d5578e978b743350bc6ab7c61c50152ca6 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 23 Feb 2021 18:23:33 +0200 Subject: Disable NetworkManager plugin for -no-dbus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: MÃ¥rten Nordheim --- src/plugins/networkinformationbackends/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/networkinformationbackends') 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() -- cgit v1.2.3