mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user