Skip to content

Commit

Permalink
cmake(bugfix):do not set nuttx_add_app NAME as required
Browse files Browse the repository at this point in the history
Instead, use direct return, because in non-build targets,
such as savedefconfig, menuconfig, this check is unnecessary
  • Loading branch information
xuxin930 authored and xiaoxiang781216 committed Jan 3, 2025
1 parent 2d20d35 commit dfcf5ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/nuttx_add_application.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit dfcf5ab

Please sign in to comment.