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 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2025-02-26 20:48:02 +08:00 committed by archer
parent 2740e40ee7
commit 4162e01a22

View file

@ -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()