This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 4f80953ecd00b0ab14c57cc2f9186706a9038b40
Author: xuxin19 <[email protected]>
AuthorDate: Tue Nov 19 14:17:54 2024 +0800

    cmake(bugfix):do not set nuttx_add_app NAME as required
    
    Instead, use direct return, because in non-build targets,
    such as savedefconfig, menuconfig, this check is unnecessary
    
    Signed-off-by: xuxin19 <[email protected]>
---
 cmake/nuttx_add_application.cmake | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmake/nuttx_add_application.cmake 
b/cmake/nuttx_add_application.cmake
index 8157d9f3617..db436aeba93 100644
--- a/cmake/nuttx_add_application.cmake
+++ b/cmake/nuttx_add_application.cmake
@@ -104,11 +104,13 @@ function(nuttx_add_application)
     DEFINITIONS
     OPTIONS
     NO_MAIN_ALIAS
-    REQUIRED
-    NAME
     ARGN
     ${ARGN})
 
+  if(NOT NAME)
+    return()
+  endif()
+
   # check if SRCS exist
   if(SRCS)
     file(GLOB SRCS_EXIST ${SRCS})

Reply via email to