mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-13 06:00:25 +00:00
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:
parent
bc0ed23a5d
commit
7a8ce88ed4
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue