Skip to content

Commit 2deef5a

Browse files
author
Jamie Smith
authored
Bugfix: Only link mbed-wifi if it exists for this target (#252)
1 parent e6a63d9 commit 2deef5a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

connectivity/netsocket/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ target_link_libraries(mbed-netsocket
7979

8080
target_link_libraries(mbed-netsocket
8181
INTERFACE
82-
mbed-wifi
8382
mbed-cellular
8483
mbed-nanostack-libservice
8584
)
85+
86+
# Link in mbed-wifi if we have any wifi drivers
87+
if(TARGET mbed-wifi)
88+
target_link_libraries(mbed-netsocket
89+
INTERFACE
90+
mbed-wifi
91+
)
92+
endif()

targets/targets.json5

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8893,8 +8893,6 @@
88938893
"TFM_OUTPUT_EXT": "hex"
88948894
},
88958895
// Also known as CYSBSYSKIT-DEV-01 Rapid IoT Connect Developer Kit
8896-
// Note: It appears that Infineon is also maintaining this as a custom target here:
8897-
// https://github.com/Infineon/TARGET_CYSBSYSKIT-DEV-01
88988896
// However, as of 2024, I cannot find this board anywhere for sale, so it may be a candidate for removal.
88998897
"CYSBSYSKIT_01": {
89008898
"inherits": [

0 commit comments

Comments
 (0)