Use version-less Qt targets and functions whenever possible

This commit is contained in:
Ilya Fedin 2022-08-09 02:36:15 +04:00 committed by John Preston
parent 16708fd4f4
commit 637ff6be4b

View file

@ -279,14 +279,10 @@ if (DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
elseif(LINUX) elseif(LINUX)
remove_target_sources(lib_ui ${src_loc} ui/platform/linux/ui_linux_wayland_integration_dummy.cpp) remove_target_sources(lib_ui ${src_loc} ui/platform/linux/ui_linux_wayland_integration_dummy.cpp)
if (DESKTOP_APP_QT6) qt_generate_wayland_protocol_client_sources(lib_ui
qt6_generate_wayland_protocol_client_sources(lib_ui FILES
FILES ${third_party_loc}/wayland-protocols/stable/xdg-shell/xdg-shell.xml
${third_party_loc}/wayland-protocols/stable/xdg-shell/xdg-shell.xml )
)
else()
message(FATAL_ERROR "This piece of cmake code is not ported to Qt 5")
endif()
target_link_libraries(lib_ui target_link_libraries(lib_ui
PUBLIC PUBLIC