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 16, 2024
1 parent 7d99fd1 commit e9b09e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions connectivity/netsocket/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ 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)
target_link_libraries(mbed-netsocket-api PUBLIC mbed-wifi)
endif()

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

0 comments on commit e9b09e9

Please sign in to comment.