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) <claude@anthropic.com>
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
This commit is contained in:
Junbo Zheng 2026-09-12 11:36:33 +08:00 committed by Xiang Xiao
parent bc0ed23a5d
commit 7a8ce88ed4

View file

@ -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()