From 7a8ce88ed48e317772c25deea995b73f776db91e Mon Sep 17 00:00:00 2001 From: Junbo Zheng Date: Sat, 12 Sep 2026 11:36:33 +0800 Subject: [PATCH] cmake: fix missing '$' in luamod dir existence guard The guard tested the literal string "{LUAMOD_DIR}" instead of the expanded path, so it never short-circuited and file(MAKE_DIRECTORY) ran on every configure. Add the missing '$' so the guard checks the intended path. Assisted-by: Claude Code (glm-5.3) Signed-off-by: Junbo Zheng --- cmake/nuttx_add_luamod.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/nuttx_add_luamod.cmake b/cmake/nuttx_add_luamod.cmake index e40e29d1d..e0daa90b4 100644 --- a/cmake/nuttx_add_luamod.cmake +++ b/cmake/nuttx_add_luamod.cmake @@ -22,7 +22,7 @@ set(LUAMOD_DIR ${NUTTX_BINARY_DIR}/luamod) -if(NOT EXISTS {LUAMOD_DIR}) +if(NOT EXISTS ${LUAMOD_DIR}) file(MAKE_DIRECTORY ${LUAMOD_DIR}) endif()