Fix linking for posix targets

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2021-10-11 21:47:23 +03:00 committed by Daniel Agar
parent 138f584e70
commit 705171eb53
2 changed files with 1 additions and 4 deletions

View File

@ -41,10 +41,6 @@ target_link_libraries(px4
PRIVATE
${module_libraries}
m
# horrible circular dependencies that need to be teased apart
px4_layer px4_platform
work_queue
parameters
)

View File

@ -301,6 +301,7 @@ function(px4_os_prebuild_targets)
ARGN ${ARGN})
add_library(prebuild_targets INTERFACE)
target_link_libraries(prebuild_targets INTERFACE px4_layer drivers_board)
add_dependencies(prebuild_targets DEPENDS uorb_headers)
endfunction()