Fix build without QWebSockets

Disable QmlDesigner if it is not available.
The dependency leaks from devicesharing into the rest of
QmlDesigner via includes and dependencies on Device in other parts.

Change-Id: I11fb2c3fcd6f284ccc815110bb7dbb1c036625f7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Eike Ziller
2025-01-08 09:26:13 +01:00
parent 9f4d011fa6
commit dd11bad380

View File

@@ -47,7 +47,7 @@ find_package(Qt6 QUIET COMPONENTS WebSockets WebEngineWidgets)
add_qtc_plugin(QmlDesigner
PLUGIN_RECOMMENDS QmlPreview
CONDITION TARGET QmlDesignerCore AND TARGET Qt::QuickWidgets AND TARGET Qt::Svg
CONDITION TARGET QmlDesignerCore AND TARGET Qt::QuickWidgets AND TARGET Qt::Svg AND TARGET Qt::WebSockets
PLUGIN_DEPENDS
Core
ProjectExplorer