mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 23:17:11 +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()
|
||||
|
||||
@@ -23,8 +23,8 @@ if(CONFIG_FS_ROMFS)
|
||||
target_sources(fs PRIVATE fs_romfs.c fs_romfsutil.c)
|
||||
|
||||
if(CONFIG_TRACE_ROMFS_FS)
|
||||
set_source_files_properties(fs_romfs.c PROPERTIES COMPILE_FLAGS
|
||||
-finstrument-functions)
|
||||
set_source_files_properties(fs_romfs.c DIRECTORY ..
|
||||
PROPERTIES COMPILE_FLAGS -finstrument-functions)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
@@ -27,6 +27,6 @@ if(CONFIG_FS_RPMSGFS_SERVER)
|
||||
endif()
|
||||
|
||||
if(CONFIG_TRACE_RPMSGFS_FS)
|
||||
set_source_files_properties(rpmsgfs.c PROPERTIES COMPILE_FLAGS
|
||||
-finstrument-functions)
|
||||
set_source_files_properties(rpmsgfs.c DIRECTORY ..
|
||||
PROPERTIES COMPILE_FLAGS -finstrument-functions)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user