From 705171eb53a95d822e82bb8cc22b9d3ee2eb7450 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Mon, 11 Oct 2021 21:47:23 +0300 Subject: [PATCH] Fix linking for posix targets Signed-off-by: Jukka Laitinen --- platforms/posix/CMakeLists.txt | 4 ---- platforms/posix/cmake/px4_impl_os.cmake | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/platforms/posix/CMakeLists.txt b/platforms/posix/CMakeLists.txt index 15ed8f7764..2cae2595ac 100644 --- a/platforms/posix/CMakeLists.txt +++ b/platforms/posix/CMakeLists.txt @@ -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 ) diff --git a/platforms/posix/cmake/px4_impl_os.cmake b/platforms/posix/cmake/px4_impl_os.cmake index 3d9bada3c1..8137c75d19 100644 --- a/platforms/posix/cmake/px4_impl_os.cmake +++ b/platforms/posix/cmake/px4_impl_os.cmake @@ -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()