mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
a665cd795a
commit
4f80953ecd
1 changed files with 4 additions and 2 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue