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.
This commit is contained in:
Beat Küng 2023-11-29 10:38:54 +01:00 committed by Daniel Agar
parent 3b041ef8d4
commit f69636feef
1 changed files with 1 additions and 1 deletions

View File

@ -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}