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 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19
2024-11-19 14:17:54 +08:00
committed by Xiang Xiao
parent a665cd795a
commit 4f80953ecd
+4 -2
View File
@@ -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})