mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
cmake: allow nuttx_add_application to inherit includes from dependent target
This commit is contained in:
committed by
Petro Karashchenko
parent
73e5b9405f
commit
db65b6b0e6
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user