From 37f04028ca7e4234ca5d2fd4ecf63a4aef5e8b8e Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 9 Feb 2021 22:03:22 +0000 Subject: [PATCH] Client: Rebuild generated files when source or QtWaylandScanner changes Right now if one changes QtWaylandScanner you need to do a clean build to see the changes. Change-Id: I3fc9f37a25550880328363b07b1bb5713c8df2e6 Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: David Edmundson --- src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake b/src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake index 408cf237965..5eab19d896f 100644 --- a/src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake +++ b/src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake @@ -44,6 +44,7 @@ function(qt6_generate_wayland_protocol_client_sources target) add_custom_command( OUTPUT "${qtwaylandscanner_header_output}" COMMAND Qt6::qtwaylandscanner client-header "${protocol_file}" "${wayland_include_dir}" > "${qtwaylandscanner_header_output}" + DEPENDS ${protocol_file} Qt6::qtwaylandscanner ) # TODO: We need this hack in order to get the xcomposite plugins to build... @@ -61,6 +62,7 @@ function(qt6_generate_wayland_protocol_client_sources target) add_custom_command( OUTPUT "${qtwaylandscanner_code_output}" COMMAND Qt6::qtwaylandscanner client-code "${protocol_file}" --header-path='${wayland_include_dir}' --add-include='${qtwaylandscanner_code_include}' > "${qtwaylandscanner_code_output}" + DEPENDS ${protocol_file} Qt6::qtwaylandscanner ) target_sources(${target} PRIVATE