This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 15a2d7024586c5030ae02b80ac27677cc71bbf8f Author: xuxin19 <[email protected]> AuthorDate: Fri Nov 20 17:33:11 2026 +0800 cmake(bugfix):fix dequote error in Kconfig parse eg: parse config `CONFIG_STR="my string is \"str\""` we expect `my string is \"str\"` however,the incorrect parse will be `my string is \str\` Signed-off-by: xuxin19 <[email protected]> --- cmake/nuttx_kconfig.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/nuttx_kconfig.cmake b/cmake/nuttx_kconfig.cmake index 9247dad5dfe..ca5c0736436 100644 --- a/cmake/nuttx_kconfig.cmake +++ b/cmake/nuttx_kconfig.cmake @@ -80,7 +80,9 @@ function(nuttx_export_kconfig kconfigfile) string(REPLACE "${Name}=" "" Value ${NameAndValue}) # remove extra quotes - string(REPLACE "\"" "" Value ${Value}) + if(Value MATCHES "^\"(.*)\"$") + set(Value "${CMAKE_MATCH_1}") + endif() decode_semicolon(Value) # Set the variable set(${Name}
