From 4162e01a22db611f2066056cc8f9eccf9745663e Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Wed, 26 Feb 2025 20:48:02 +0800 Subject: [PATCH] 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 --- 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()