1
0
Fork 0

Don't depend on Qt::WaylandClient target when linking Wayland libraries

This commit is contained in:
Ilya Fedin 2022-08-13 04:56:24 +04:00 committed by John Preston
parent 5cf73fe21b
commit 4b36e46448

View file

@ -196,7 +196,7 @@ else()
lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}Core lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}Core
) )
endif() endif()
if (TARGET Qt::WaylandClient) if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
list(PREPEND qt_libs list(PREPEND qt_libs
plugins/platforms/${qt_lib_prefix}qwayland-generic plugins/platforms/${qt_lib_prefix}qwayland-generic
plugins/platforms/${qt_lib_prefix}qwayland-egl plugins/platforms/${qt_lib_prefix}qwayland-egl
@ -257,7 +257,7 @@ if (LINUX)
xcb-render-util xcb-render-util
xcb-keysyms xcb-keysyms
) )
if (TARGET Qt::WaylandClient) if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
target_link_libraries(external_qt target_link_libraries(external_qt
INTERFACE INTERFACE
desktop-app::linux_wayland_helper desktop-app::linux_wayland_helper