Link rc against nuttx_fs in nuttx builds

nuttx_fs is not part of prebuild_targets in
protected/kernel builds

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-02-12 14:38:30 +02:00
parent 885fe62fec
commit 7c02a10d5f
+5
View File
@@ -45,6 +45,11 @@ target_compile_options(rc
#-DDEBUG_BUILD
-Wno-unused-result
)
if (${PX4_PLATFORM} MATCHES "nuttx")
target_link_libraries(rc PRIVATE nuttx_fs)
endif()
target_link_libraries(rc PRIVATE prebuild_targets)
if(PX4_TESTING AND (${PX4_PLATFORM} MATCHES "posix"))