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 4162e01a22db611f2066056cc8f9eccf9745663e
Author: xuxin19 <[email protected]>
AuthorDate: Wed Feb 26 20:48:02 2025 +0800

    cmake(bugfix):Add BEFORE the inc path of the apps and library
    
    Because we expect private configuration to always OVERRIDE public 
configuration
    
    Signed-off-by: xuxin19 <[email protected]>
---
 cmake/nuttx_add_application.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/nuttx_add_application.cmake 
b/cmake/nuttx_add_application.cmake
index 1c8259e3a76..e17b32ad980 100644
--- a/cmake/nuttx_add_application.cmake
+++ b/cmake/nuttx_add_application.cmake
@@ -234,7 +234,7 @@ function(nuttx_add_application)
 
     if(INCLUDE_DIRECTORIES)
       foreach(inc ${INCLUDE_DIRECTORIES})
-        target_include_directories(${TARGET} PRIVATE ${inc})
+        target_include_directories(${TARGET} BEFORE PRIVATE ${inc})
       endforeach()
     endif()
   endif()

Reply via email to