mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
cmake: allow nuttx_add_application to inherit includes from dependent target
This commit is contained in:
parent
73e5b9405f
commit
db65b6b0e6
1 changed files with 5 additions and 4 deletions
|
@ -183,10 +183,11 @@ function(nuttx_add_application)
|
|||
# interface include and libraries
|
||||
foreach(dep ${DEPENDS})
|
||||
get_target_property(dep_type ${dep} TYPE)
|
||||
# if (${dep_type} STREQUAL "STATIC_LIBRARY")
|
||||
# target_link_libraries(${TARGET} PRIVATE ${dep}) else()
|
||||
add_dependencies(${TARGET} ${dep})
|
||||
# endif()
|
||||
if (${dep_type} STREQUAL "STATIC_LIBRARY")
|
||||
target_link_libraries(${TARGET} PRIVATE ${dep})
|
||||
else()
|
||||
add_dependencies(${TARGET} ${dep})
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
endfunction()
|
||||
|
|
Loading…
Reference in a new issue