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:
Jukka Laitinen
2021-09-07 12:38:09 +03:00
parent 5320653aba
commit b3bf1d8b0a
+4
View File
@@ -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()