From 637ff6be4b2481fffa78087a24cb9bd5380e046a Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 9 Aug 2022 02:36:15 +0400 Subject: [PATCH] Use version-less Qt targets and functions whenever possible --- CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13b7a19..9dbebcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -279,14 +279,10 @@ if (DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION) elseif(LINUX) remove_target_sources(lib_ui ${src_loc} ui/platform/linux/ui_linux_wayland_integration_dummy.cpp) - if (DESKTOP_APP_QT6) - qt6_generate_wayland_protocol_client_sources(lib_ui - FILES - ${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() + qt_generate_wayland_protocol_client_sources(lib_ui + FILES + ${third_party_loc}/wayland-protocols/stable/xdg-shell/xdg-shell.xml + ) target_link_libraries(lib_ui PUBLIC