make the build stop in case of an error on the RTPS generation scripts

This commit is contained in:
TSC21 2018-10-06 16:24:05 +01:00 committed by Beat Küng
parent 50e46f89b6
commit 254a520e19

View File

@ -83,7 +83,7 @@ if (NOT "${config_rtps_send_topics}" STREQUAL "" OR NOT "${config_rtps_receive_t
--agent-outdir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_agent
--client-outdir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_client
--idl-dir ${CMAKE_CURRENT_BINARY_DIR}/micrortps_agent/idl
>micrortps_bridge.log 2>&1 || cat micrortps_bridge.log # quiet successful build output
>micrortps_bridge.log > /dev/null
DEPENDS ${send_topic_files} ${receive_topic_files}
COMMENT "Generating RTPS topic bridge"
)