Skip to content

Commit

Permalink
Fix WiFi link error for as default network interface
Browse files Browse the repository at this point in the history
This fixes WiFi doesn't get linked in when configued as default network
interface.
  • Loading branch information
ccli8 committed Oct 25, 2024
1 parent af80d11 commit 5b5e7b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions connectivity/netsocket/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ if("MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE=MESH" IN_LIST MBED_CONFIG_DE
target_link_libraries(mbed-netsocket-api PUBLIC mbed-nanostack-mbed_mesh_api)
endif()

# Similarly if wifi networking is used bring in that library
if("MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE=WIFI" IN_LIST MBED_CONFIG_DEFINITIONS)
if(TARGET mbed-wifi)
target_link_libraries(mbed-netsocket-api PUBLIC mbed-wifi)
endif()
endif()

if("DEVICE_EMAC=1" IN_LIST MBED_TARGET_DEFINITIONS)
target_link_libraries(mbed-netsocket-api
Expand Down

0 comments on commit 5b5e7b0

Please sign in to comment.