mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
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:
+1
-1
@@ -331,7 +331,7 @@ add_custom_command(
|
|||||||
--source-output-file ${uorb_message_fields_cpp_file}
|
--source-output-file ${uorb_message_fields_cpp_file}
|
||||||
--header-output-file ${uorb_message_fields_header_file}
|
--header-output-file ${uorb_message_fields_header_file}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
uorb_json_files
|
${uorb_json_files}
|
||||||
${PX4_SOURCE_DIR}/Tools/msg/px_generate_uorb_compressed_fields.py
|
${PX4_SOURCE_DIR}/Tools/msg/px_generate_uorb_compressed_fields.py
|
||||||
COMMENT "Generating uORB compressed fields"
|
COMMENT "Generating uORB compressed fields"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user