mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 19:33:35 +08:00
microRTPS bridge: CMake: add verbosity regarding the FastRTPSGen version
This commit is contained in:
@@ -38,6 +38,14 @@
|
|||||||
find_program(FASTRTPSGEN fastrtpsgen PATHS $ENV{FASTRTPSGEN_DIR})
|
find_program(FASTRTPSGEN fastrtpsgen PATHS $ENV{FASTRTPSGEN_DIR})
|
||||||
if(NOT FASTRTPSGEN)
|
if(NOT FASTRTPSGEN)
|
||||||
message(FATAL_ERROR "Unable to find fastrtpsgen")
|
message(FATAL_ERROR "Unable to find fastrtpsgen")
|
||||||
|
else()
|
||||||
|
execute_process(
|
||||||
|
COMMAND $ENV{FASTRTPSGEN_DIR}fastrtpsgen -version
|
||||||
|
OUTPUT_VARIABLE FASTRTPSGEN_VERSION
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
ERROR_QUIET
|
||||||
|
)
|
||||||
|
message(STATUS "${FASTRTPSGEN_VERSION}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (EXISTS "${PX4_SOURCE_DIR}/msg/tools/uorb_rtps_message_ids.yaml")
|
if (EXISTS "${PX4_SOURCE_DIR}/msg/tools/uorb_rtps_message_ids.yaml")
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ if (NOT "${config_rtps_send_topics}" STREQUAL "" OR NOT "${config_rtps_receive_t
|
|||||||
--agent-outdir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_agent
|
--agent-outdir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_agent
|
||||||
--client-outdir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_client
|
--client-outdir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_client
|
||||||
--idl-dir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_agent/idl
|
--idl-dir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_agent/idl
|
||||||
>micrortps_bridge.log > /dev/null
|
>micrortps_bridge.log >/dev/null
|
||||||
DEPENDS ${send_topic_files} ${receive_topic_files}
|
DEPENDS ${send_topic_files} ${receive_topic_files}
|
||||||
COMMENT "Generating RTPS topic bridge"
|
COMMENT "Generating RTPS topic bridge"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user