diff --git a/src/lib/cdev/CMakeLists.txt b/src/lib/cdev/CMakeLists.txt index 6a3f90fe9f..c4a7674be5 100644 --- a/src/lib/cdev/CMakeLists.txt +++ b/src/lib/cdev/CMakeLists.txt @@ -51,6 +51,10 @@ px4_add_library(cdev ) target_compile_options(cdev PRIVATE ${MAX_CUSTOM_OPT_LEVEL}) +if (${PX4_PLATFORM} STREQUAL "nuttx") + target_link_libraries(cdev PRIVATE nuttx_fs) # register/unregister driver +endif() + if(PX4_TESTING) add_subdirectory(test) endif()