mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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
|
DEFINITIONS
|
||||||
OPTIONS
|
OPTIONS
|
||||||
NO_MAIN_ALIAS
|
NO_MAIN_ALIAS
|
||||||
REQUIRED
|
|
||||||
NAME
|
|
||||||
ARGN
|
ARGN
|
||||||
${ARGN})
|
${ARGN})
|
||||||
|
|
||||||
|
if(NOT NAME)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
# check if SRCS exist
|
# check if SRCS exist
|
||||||
if(SRCS)
|
if(SRCS)
|
||||||
file(GLOB SRCS_EXIST ${SRCS})
|
file(GLOB SRCS_EXIST ${SRCS})
|
||||||
|
|||||||
Reference in New Issue
Block a user