mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 17:18:28 +08:00
cmake(enhance):make CMake extensions include path inherit PUBLIC
since we imply nuttx_link_libraries, nuttx_lib target can inherit include path Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -153,7 +153,7 @@ endfunction()
|
||||
# Usage: nuttx_include_directories("include/path1" "include/path2")
|
||||
function(nuttx_include_directories)
|
||||
if(TARGET ${NX_CURRENT_LIBRARY})
|
||||
target_include_directories(${NX_CURRENT_LIBRARY} PRIVATE ${ARGN})
|
||||
target_include_directories(${NX_CURRENT_LIBRARY} PUBLIC ${ARGN})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user