mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 04:13:33 +08:00
cmake topic_listener: make topic_listener.cpp depend on msg_gen
This makes sure the .cpp file is regenerated on .msg file changes
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
add_custom_command(OUTPUT topic_listener.cpp
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/Tools/generate_listener.py ${CMAKE_SOURCE_DIR} > topic_listener.cpp
|
||||
DEPENDS msg_gen
|
||||
)
|
||||
|
||||
add_custom_target(generate_topic_listener
|
||||
@@ -51,6 +52,5 @@ px4_add_module(
|
||||
DEPENDS
|
||||
platforms__common
|
||||
generate_topic_listener
|
||||
msg_gen
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
Reference in New Issue
Block a user