mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +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)
|
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")
|
if (NOT "${PX4_BOARD}" MATCHES "io-v2")
|
||||||
add_subdirectory(uORB)
|
add_subdirectory(uORB)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user