From b87a9164531f3965bf1bcbdf2aa7299ddb087a26 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 23 Feb 2021 18:23:33 +0200 Subject: [PATCH] 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. Fixes: QTBUG-91155 Change-Id: I70ddca63a277cd57a253092f97160f89ebc76f06 Reviewed-by: Edward Welbourne Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit ea1c35d5578e978b743350bc6ab7c61c50152ca6) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/networkinformationbackends/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/networkinformationbackends/CMakeLists.txt b/src/plugins/networkinformationbackends/CMakeLists.txt index b1eafa44418..142031c62a9 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()