From dfcf5abf7fffbb65cff85e986c916f860aaf55fc Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Tue, 19 Nov 2024 14:17:54 +0800 Subject: [PATCH] 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 --- 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 1c8259e3a76..b27ba7611ea 100644 --- a/cmake/nuttx_add_application.cmake +++ b/cmake/nuttx_add_application.cmake @@ -90,11 +90,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})