mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-05 13:38:53 +08:00
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:
committed by
Daniel Agar
parent
23d15c1365
commit
1cab556ddb
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user