nuttx/cmake
Junbo Zheng 2578638d52 cmake: correct nuttx_wildcard_sources cmake usage
reference:
https://cmake.org/cmake/help/latest/command/cmake_parse_arguments.html

add debug message for test
```diff
diff --git a/cmake/nuttx_extensions.cmake b/cmake/nuttx_extensions.cmake
index 9ed430b74a..baa22cf90d 100644

--- a/cmake/nuttx_extensions.cmake
+++ b/cmake/nuttx_extensions.cmake
@@ -116,6 +116,9 @@ endfunction()
 function(nuttx_wildcard_sources)
   cmake_parse_arguments(ARGS "" "" EXCLUDE ${ARGN})

+  message(STATUS "## UNPARSED ARGUMENTS ${ARGS_UNPARSED_ARGUMENTS}")
+  message(STATUS "## ARGN ${ARGN}")
+
   file(GLOB SRCS ${ARGS_UNPARSED_ARGUMENTS})
   if(ARGS_EXCLUDE)
     file(GLOB RM_SRCS ${ARGS_EXCLUDE})
```

cmake build test
```
➜  /home/mi/local/mycpp [25-10-15_14:11:41] git:(master) ✗ ls demo
1.c  2.c  3.c
➜  /home/mi/local/mycpp [25-10-15_14:11:57] git:(master) ✗ cmake -S . -B build -G Ninja
>> 14:12:42.161053 INFO    [demo] Time taken: 0ms
-- ## UNPARSED ARGUMENTS aaa/*.c
-- ## ARGN aaa/*.c;EXCLUDE;aaa/3.c
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/mi/local/mycpp/build
➜  /home/mi/local/mycpp [25-10-15_14:12:47] git:(master) ✗
```

`SRCS` just collect all source files instead of EXCLUDE arguments

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2025-10-16 12:48:40 +08:00
..
menuconfig.cmake cmake: Renamed savedefconfig with refreshsilent 2024-10-18 22:14:50 +08:00
nuttx_add_application.cmake cmake(enhance):enhance NuttX cmake target dependencies and link_library modules 2024-11-22 15:16:07 -03:00
nuttx_add_dependencies.cmake style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
nuttx_add_library.cmake cmake: Use EXTRAFLAGS to define customized compilation options 2025-01-18 14:12:49 +08:00
nuttx_add_module.cmake cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00
nuttx_add_romfs.cmake style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
nuttx_add_subdirectory.cmake cmake: pass exclusion list to nuttx_add_subdirectory 2025-10-03 11:34:56 +08:00
nuttx_add_symtab.cmake style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
nuttx_create_symlink.cmake cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00
nuttx_export_header.cmake cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00
nuttx_extensions.cmake cmake: correct nuttx_wildcard_sources cmake usage 2025-10-16 12:48:40 +08:00
nuttx_generate_headers.cmake cmake:refactor cmake binary include_arch dir into include 2024-09-15 10:01:07 +08:00
nuttx_generate_outputs.cmake arch/tricore: Remove tasking compiler tool specific code from 2025-09-26 13:26:31 +02:00
nuttx_generate_sim_ld.cmake cmake:bugfix refine gen sim link script to independent cmake module 2024-09-15 10:01:07 +08:00
nuttx_kconfig.cmake cmake:bugfix kconfig menu in cmake cannot be generated recursively 2024-11-18 17:01:43 +08:00
nuttx_mkconfig.cmake libc/elf: rename modlib to libelf 2025-04-11 09:43:22 +08:00
nuttx_mkversion.cmake cmake(bugfix):fix VERSION genarator strip error in CMake build 2025-06-18 15:45:30 -04:00
nuttx_multiple_link.cmake cmake/multiple link: cmake supports multiple link global variables out of bounds 2024-10-08 16:55:45 +08:00
nuttx_parse_function_args.cmake cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00
nuttx_process_config.cmake arm/rp2040: CMake build for Raspberry Pi RP2040 implemented 2025-09-24 14:42:27 +08:00
nuttx_redefine_symbols.cmake cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00
nuttx_remove_compile_options.cmake style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
nuttx_sethost.cmake build ci:add msvc windows native ci workflow 2024-10-13 10:25:19 +08:00
nuttx_source_file_properties.cmake cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00
nuttx_toolchain.cmake CMake/preprocess: fix typo PREPROCES -> PREPROCESS 2024-10-29 17:41:01 +08:00
savedefconfig.cmake tools: Update Unix.mk and savedefconfig.cmake for CONFIG_ARCH_BOARD_COMMON 2025-05-02 09:30:34 -03:00
symtab.c.in cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00