diff --git a/cmake/nuttx_add_application.cmake b/cmake/nuttx_add_application.cmake index d6f3ad592a269..28217ff1898f6 100644 --- a/cmake/nuttx_add_application.cmake +++ b/cmake/nuttx_add_application.cmake @@ -219,13 +219,6 @@ function(nuttx_add_application) # interface include and libraries foreach(dep ${DEPENDS}) nuttx_add_dependencies(TARGET ${TARGET} DEPENDS ${dep}) - if(TARGET ${dep}) - get_target_property(dep_type ${dep} TYPE) - if(${dep_type} STREQUAL "STATIC_LIBRARY") - target_link_libraries(${TARGET} PRIVATE ${dep}) - endif() - endif() - endforeach() endif() endfunction()