This is an automated email from the ASF dual-hosted git repository.
simbit18 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 8126aaf80 cmake/process-spawn: remove if not required align with
Makefile
8126aaf80 is described below
commit 8126aaf803bcf5c9544dc73770758ef4f595d83e
Author: buxiasen <[email protected]>
AuthorDate: Wed Apr 16 21:24:50 2025 +0800
cmake/process-spawn: remove if not required align with Makefile
We already fixed the process-spawn.c in Makefile, should align to cmake
Signed-off-by: buxiasen <[email protected]>
---
system/libuv/CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/system/libuv/CMakeLists.txt b/system/libuv/CMakeLists.txt
index 4685da12f..12cde4fa7 100644
--- a/system/libuv/CMakeLists.txt
+++ b/system/libuv/CMakeLists.txt
@@ -106,10 +106,13 @@ if(CONFIG_LIBUV)
${LIBUV_UNIX_DIR}/fs.c
${LIBUV_SRC_DIR}/fs-poll.c
${LIBUV_SRC_DIR}/timer.c
- ${LIBUV_UNIX_DIR}/process-spawn.c
${LIBUV_UNIX_DIR}/sysinfo-loadavg.c
${LIBUV_UNIX_DIR}/sysinfo-memory.c)
+ if(CONFIG_LIBC_EXECFUNCS)
+ list(APPEND SRCS ${LIBUV_UNIX_DIR}/process-spawn.c)
+ endif()
+
if(CONFIG_LIBC_DLFCN)
list(APPEND SRCS ${LIBUV_UNIX_DIR}/dl.c)
endif()