This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 79d7ada455711751d3cac5a3d1468ef7e3966165 Author: xuxin19 <[email protected]> AuthorDate: Wed Aug 6 10:31:12 2025 +0800 cmake(bugfix):keep include directory order in cmake application Adding a for loop will reverse the order of addition. Signed-off-by: xuxin19 <[email protected]> --- cmake/nuttx_add_application.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/nuttx_add_application.cmake b/cmake/nuttx_add_application.cmake index e17b32ad980..efee621dda7 100644 --- a/cmake/nuttx_add_application.cmake +++ b/cmake/nuttx_add_application.cmake @@ -233,9 +233,8 @@ function(nuttx_add_application) endif() if(INCLUDE_DIRECTORIES) - foreach(inc ${INCLUDE_DIRECTORIES}) - target_include_directories(${TARGET} BEFORE PRIVATE ${inc}) - endforeach() + target_include_directories(${TARGET} BEFORE + PRIVATE ${INCLUDE_DIRECTORIES}) endif() endif()
