fix(cmake): fix external library mode

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu 2024-02-22 22:17:36 +08:00 committed by Xiang Xiao
parent 5c85b8618c
commit 0b448b35f4
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ endfunction()
# Usually used with Nuttx to include an external system that already supports
# CMake compilation
function(nuttx_add_external_library target)
cmake_parse_arguments(ARGS MODE "" "" ${ARGN})
cmake_parse_arguments(ARGS "" MODE "" ${ARGN})
if(NOT ARGS_MODE)
set_property(GLOBAL APPEND PROPERTY NUTTX_SYSTEM_LIBRARIES ${target})
elseif("${ARGS_MODE}" STREQUAL "APPS")