diff --git a/cmake/nuttx_add_application.cmake b/cmake/nuttx_add_application.cmake index 87271543601..93e032c0865 100644 --- a/cmake/nuttx_add_application.cmake +++ b/cmake/nuttx_add_application.cmake @@ -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()