mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 06:18:40 +08:00
cmake:remove no need target_link_library in static target
the link_library of the static target will cause PRIVATE to be inherited to nuttx, resulting in duplicate linking and definition problems. because all target static libraries will eventually be linked, there is no need to specify it explicitly. Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
ec243f0f6b
commit
3ae822c098
1 changed files with 0 additions and 7 deletions
|
@ -228,13 +228,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()
|
||||
|
|
Loading…
Reference in a new issue