Topic listener: Depend on messages, not just on headers

This ensures that the listener is re-built when the message spec changes.
This commit is contained in:
Lorenz Meier
2017-12-26 16:01:11 -05:00
committed by Daniel Agar
parent 23d15c1365
commit 1cab556ddb
+5 -2
View File
@@ -33,11 +33,14 @@
add_custom_command(OUTPUT topic_listener.cpp
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate_listener.py ${PX4_SOURCE_DIR} > topic_listener.cpp
DEPENDS generate_listener.py uorb_headers
DEPENDS generate_listener.py uorb_msgs
)
add_custom_target(generate_topic_listener
DEPENDS topic_listener.cpp generate_listener.py
DEPENDS
topic_listener.cpp
generate_listener.py
uorb_msgs
)
px4_add_module(