From d92a0c6b33abcc11352096ac91e710e1c3c7dc3a Mon Sep 17 00:00:00 2001 From: Afonso Oliveira Date: Mon, 12 Oct 2026 13:44:23 +0100 Subject: [PATCH] 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 --- platforms/common/px4_work_queue/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platforms/common/px4_work_queue/CMakeLists.txt b/platforms/common/px4_work_queue/CMakeLists.txt index 01f8cc3db2b..320b26efa78 100644 --- a/platforms/common/px4_work_queue/CMakeLists.txt +++ b/platforms/common/px4_work_queue/CMakeLists.txt @@ -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)