micrortps_bridge: add "msg/tools/urtps_bridge_topics.yaml" to CMAKE_CONFIGURE_DEPENDS

- this is necessary because urtps_bridge_topics.yaml is processed at
cmake configure time (via cmake execute_process)
This commit is contained in:
Daniel Agar 2021-08-21 13:05:09 -04:00
parent 4422030037
commit 0885f37667
1 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,10 @@ else()
message(STATUS "${FASTRTPSGEN_VERSION}")
endif()
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
${PX4_SOURCE_DIR}/msg/tools/urtps_bridge_topics.yaml
)
if (EXISTS "${PX4_SOURCE_DIR}/msg/tools/urtps_bridge_topics.yaml")
set(config_rtps_send_topics)
execute_process(
@ -142,6 +146,7 @@ if (GENERATE_RTPS_BRIDGE)
${receive_topic_files}
${send_topic_files}
${PX4_SOURCE_DIR}/msg/tools/px_generate_uorb_topic_files.py
${PX4_SOURCE_DIR}/msg/tools/urtps_bridge_topics.yaml
COMMENT "Generating uORB microcdr topic headers"
VERBATIM
)
@ -161,10 +166,11 @@ if (GENERATE_RTPS_BRIDGE)
${receive_topic_files}
${send_topic_files}
${PX4_SOURCE_DIR}/msg/tools/px_generate_uorb_topic_files.py
${PX4_SOURCE_DIR}/msg/tools/urtps_bridge_topics.yaml
COMMENT "Generating uORB microcdr topic sources"
VERBATIM
)
px4_add_library(uorb_msgs_microcdr ${uorb_sources_microcdr})
px4_add_library(uorb_msgs_microcdr ${uorb_sources_microcdr} ${uorb_headers_microcdr})
add_dependencies(uorb_msgs_microcdr
uorb_headers_microcdr_gen
git_micro_cdr