Skip to content

Commit

Permalink
Merge branch 'feature/Add_target_link_library' into 'master'
Browse files Browse the repository at this point in the history
ieee802154: Add linkage target library

See merge request espressif/esp-idf!21839
  • Loading branch information
zwx1995esp committed Dec 30, 2022
2 parents b23eb42 + ab80e9b commit c09cbfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ieee802154/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ idf_component_register(

if(CONFIG_IEEE802154_ENABLED)
idf_component_get_property(esp_phy_lib esp_phy COMPONENT_LIB)
idf_component_get_property(esp_system_lib esp_system COMPONENT_LIB)
if($ENV{IEEE802154_LIB_FROM_INTERNAL_SRC})
idf_component_get_property(ieee802154_lib ieee802154_driver COMPONENT_LIB)
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${ieee802154_lib}>
Expand All @@ -25,6 +26,6 @@ if(CONFIG_IEEE802154_ENABLED)
target_link_directories(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}")
endif()
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${esp_phy_lib}> lib802154.a libphy.a libbtbb.a
$<TARGET_FILE:${esp_phy_lib}>)
$<TARGET_FILE:${esp_phy_lib}> $<TARGET_FILE:${esp_system_lib}>)
endif()
endif()

0 comments on commit c09cbfe

Please sign in to comment.