mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 02:07:36 +08:00
px4_platform: fix linking for sitl
For sitl, px4_platform links directly to drivers_board Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
@@ -54,6 +54,10 @@ add_library(px4_platform
|
||||
)
|
||||
target_link_libraries(px4_platform prebuild_targets px4_work_queue)
|
||||
|
||||
if("${PX4_BOARD}" MATCHES "sitl")
|
||||
target_link_libraries(px4_platform drivers_board)
|
||||
endif()
|
||||
|
||||
if (NOT "${PX4_BOARD}" MATCHES "io-v2")
|
||||
add_subdirectory(uORB)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user