diff --git a/CMakeLists.txt b/CMakeLists.txt index b69a0c5..afccb2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,6 +277,7 @@ endif() # fatfs add_subdirectory(third-party/fatfs) +set_property(TARGET fatfs PROPERTY POSITION_INDEPENDENT_CODE ON) target_link_libraries(icsneocpp PRIVATE fatfs) # libftdi