From 23a31b3dbca1108fba57cb432fe495696eaa2cc7 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 25 May 2021 13:09:22 +0300 Subject: [PATCH] Link cdev with nuttx_fs on nuttx flat build Signed-off-by: Jukka Laitinen --- src/lib/cdev/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/cdev/CMakeLists.txt b/src/lib/cdev/CMakeLists.txt index 0d7d869fdf..3fe51a7ae2 100644 --- a/src/lib/cdev/CMakeLists.txt +++ b/src/lib/cdev/CMakeLists.txt @@ -54,3 +54,7 @@ target_compile_options(cdev PRIVATE ${MAX_CUSTOM_OPT_LEVEL} -D__KERNEL__) if(PX4_TESTING) add_subdirectory(test) endif() + +if(CONFIG_BUILD_FLAT) # Only defined for NuttX + target_link_libraries(cdev PRIVATE nuttx_fs) +endif()