mavlink: fix linking

- link to nuttx_apps if CONFIG_NET is defined for "netlib_get_ipv4netmask"
- link to tunes

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-09-29 11:55:20 +03:00
committed by Daniel Agar
parent e959fcf9d1
commit 4c3234af38
+4
View File
@@ -123,3 +123,7 @@ px4_add_unit_gtest(SRC MavlinkStatustextHandlerTest.cpp
-Wno-address-of-packed-member # TODO: fix in c_library_v2
LINKLIBS modules__mavlink
)
if(CONFIG_NET AND "${PX4_PLATFORM}" MATCHES "nuttx")
target_link_libraries(modules__mavlink PRIVATE nuttx_apps) # netlib_get_ipv4netmask
endif()