forked from Archive/PX4-Autopilot
cdev: build & link fixes for NuttX protected build
- Always link to nuttx_fs for register/unregister_driver calls Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
parent
acdcc35392
commit
25c10eb124
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue