mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 15:12:38 +08:00
Fix to compile parameters not taking effect When cmake version is greater than 3.18
https://cmake.org/cmake/help/latest/command/set_source_files_properties.html Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
@@ -54,7 +54,7 @@ if(CONFIG_FS_LITTLEFS)
|
||||
target_include_directories(fs PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
if(CONFIG_TRACE_LITTLEFS_FS)
|
||||
set_source_files_properties(lfs_vfs.c PROPERTIES COMPILE_FLAGS
|
||||
-finstrument-functions)
|
||||
set_source_files_properties(lfs_vfs.c DIRECTORY ..
|
||||
PROPERTIES COMPILE_FLAGS -finstrument-functions)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user