From 9c3896c140efcd67a77908a0f155f7e768d2caf9 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Thu, 6 Jul 2023 19:34:23 +0200 Subject: [PATCH] Ensure that WaylandGlobalPrivate_sync_headers is running Work around QTBUG-115101. Task-number: QTBUG-115101 Pick-to: 6.6 Change-Id: Icb195e0547b8faafea73d204650a1ee7bede4a7f Reviewed-by: Alexandru Croitor --- src/platformsupport/wayland/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/platformsupport/wayland/CMakeLists.txt b/src/platformsupport/wayland/CMakeLists.txt index c3219f9d293..b2804ea2ef2 100644 --- a/src/platformsupport/wayland/CMakeLists.txt +++ b/src/platformsupport/wayland/CMakeLists.txt @@ -30,6 +30,15 @@ endif() # See global/README for a description of the following module. qt_internal_add_module(WaylandGlobalPrivate INTERNAL_MODULE HEADER_MODULE) + +# Work around 115101. +# If nothing depends on the WaylandGlobalPrivate target it doesn't run custom commands that the +# target depends on. WaylandGlobalPrivate_ensure_sync_headers makes sure that 'all' depends on +# WaylandGlobalPrivate_sync_headers. +# TODO: This needs to be removed once the fix for QTBUG-115101 is merged in qtbase. +add_custom_target(WaylandGlobalPrivate_ensure_sync_headers ALL) +add_dependencies(WaylandGlobalPrivate_ensure_sync_headers WaylandGlobalPrivate_sync_headers) + add_subdirectory(qtwaylandscanner) # special case begin