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>
This commit is contained in:
Kai Koehne 2021-02-23 18:23:33 +02:00
parent e8c52d0e8c
commit ea1c35d557

View File

@ -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()