This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 225197b779 littlefs/cmake: fix build issue 225197b779 is described below commit 225197b77915a14a571b575c1be5f3bd1bcf811b Author: Yanfeng Liu <p-liuyanfe...@xiaomi.com> AuthorDate: Tue Feb 11 20:01:04 2025 +0800 littlefs/cmake: fix build issue This fixes issue on Ubuntu 22.04 with cmake v3.22.1: ``` /usr/bin/arm-none-eabi-gcc -D-DLFS_ASSERT=DEBUGASSERT -D-DLFS_CONFIG=/home/yf/Projects/Nuttx/nuttx/fs/littlefs/lfs_vfs.h -D-DLFS_DEBUG=finfo -D-DLFS_ERROR=ferr -D-DLFS_TRACE=finfo -D-DLFS_WARN=fwarn -DLFS_ATTR_MAX=1022 -DLFS_FILE_MAX=2147483647 -DLFS_NAME_MAX=32 -D__KERNEL__ -D__NuttX__ ``` It happeed when building `qemu-armv7a:rpproxy_ivshmem`. Signed-off-by: Yanfeng Liu <p-liuyanfe...@xiaomi.com> --- fs/littlefs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/littlefs/CMakeLists.txt b/fs/littlefs/CMakeLists.txt index d6f5e67e30..dc03c0433d 100644 --- a/fs/littlefs/CMakeLists.txt +++ b/fs/littlefs/CMakeLists.txt @@ -49,7 +49,7 @@ if(CONFIG_FS_LITTLEFS) FetchContent_MakeAvailable(littlefs) endif() - target_compile_definitions( + target_compile_options( fs PRIVATE $<$<NOT:$<BOOL:${CONFIG_FS_LITTLEFS_HAS_LFS_DEFINES}>>:-DLFS_TRACE=finfo>