From 7c02a10d5fdaca94f48e1944d1e7f3e2b4251949 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Fri, 12 Feb 2021 14:38:30 +0200 Subject: [PATCH] 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 --- src/lib/rc/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/rc/CMakeLists.txt b/src/lib/rc/CMakeLists.txt index bcba0a41a0..36ea19b6b2 100644 --- a/src/lib/rc/CMakeLists.txt +++ b/src/lib/rc/CMakeLists.txt @@ -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"))