mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
fix(px4_work_queue): link px4_layer for the task functions it uses
WorkQueueManager starts and joins its thread with px4_task_spawn_cmd() and px4_task_join() from px4_layer, but px4_work_queue did not declare that dependency. Targets with many modules pull those objects in before px4_work_queue is linked; a target with only a few system commands fails to link. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>
This commit is contained in:
1 parent
de38b28981
commit
d92a0c6b33
1 file changed
+4
@@ -44,3 +44,7 @@ if(PX4_TESTING)
|
||||
endif()
|
||||
|
||||
target_compile_options(px4_work_queue PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
|
||||
|
||||
# WorkQueueManager starts and joins its thread with px4_task_spawn_cmd() and
|
||||
# px4_task_join()
|
||||
target_link_libraries(px4_work_queue PRIVATE px4_layer)
|
||||
Reference in new issue
Block a user