cmake: allow nuttx_add_application to inherit includes from dependent target

This commit is contained in:
raiden00pl 2023-07-13 16:10:19 +02:00 committed by Petro Karashchenko
parent 73e5b9405f
commit db65b6b0e6

View file

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