From f69636feefee9bec819bbf81a4ce91f67bd42e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 29 Nov 2023 10:38:54 +0100 Subject: [PATCH] fix msg: add_custom_command needs to depend on files instead of custom_command target name This fixes incremental builds when msg files change. Introduced with https://github.com/PX4/PX4-Autopilot/pull/21995. --- msg/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg/CMakeLists.txt b/msg/CMakeLists.txt index 8327c7b3bd..d214bcfe82 100644 --- a/msg/CMakeLists.txt +++ b/msg/CMakeLists.txt @@ -331,7 +331,7 @@ add_custom_command( --source-output-file ${uorb_message_fields_cpp_file} --header-output-file ${uorb_message_fields_header_file} DEPENDS - uorb_json_files + ${uorb_json_files} ${PX4_SOURCE_DIR}/Tools/msg/px_generate_uorb_compressed_fields.py COMMENT "Generating uORB compressed fields" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}