cmake/nuttx_kconfig.cmake: fixed the correct .config path in the build folder

Fixing the correct .config path during the setconfig process.

changed ${NUTTX_DIR} -> ${CMAKE_BINARY_DIR}

see https://github.com/apache/nuttx/pull/13175#issuecomment-2320360957
This commit is contained in:
simbit18 2024-08-30 15:09:08 +02:00 committed by Xiang Xiao
parent b998afdc04
commit ebbd585f97

View File

@ -160,6 +160,6 @@ endfunction()
function(nuttx_setconfig)
execute_process(
COMMAND ${CMAKE_COMMAND} -E env ${KCONFIG_ENV} setconfig ${ARGN}
WORKING_DIRECTORY ${NUTTX_DIR}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
OUTPUT_QUIET ERROR_QUIET)
endfunction()