From 0b448b35f4882aca614c4e6b11b6a38ca35be293 Mon Sep 17 00:00:00 2001 From: Neo Xu Date: Thu, 22 Feb 2024 22:17:36 +0800 Subject: [PATCH] fix(cmake): fix external library mode Signed-off-by: Neo Xu --- cmake/nuttx_add_library.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/nuttx_add_library.cmake b/cmake/nuttx_add_library.cmake index b7f64e8bb8..5497b54100 100644 --- a/cmake/nuttx_add_library.cmake +++ b/cmake/nuttx_add_library.cmake @@ -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")