Skip to content

Commit dfa9644

Browse files
committed
Fix creation of mbed-wifi target to top directory
The location where the 'mbed-wifi' target is created is now fixed to the top directory. CMake commands e.g. add_custom_command are required to invoke in the same directory as where the 'mbed-wifi' target is created.
1 parent e9b09e9 commit dfa9644

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

connectivity/drivers/wifi/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ if("WICED" IN_LIST MBED_TARGET_LABELS)
2323
endif()
2424

2525
if("STM" IN_LIST MBED_TARGET_LABELS)
26+
if("EMW3080B" IN_LIST MBED_TARGET_LABELS)
27+
create_mbed_wifi_target()
28+
endif()
2629
add_subdirectory(TARGET_STM EXCLUDE_FROM_ALL)
2730
endif()
2831

connectivity/drivers/wifi/TARGET_STM/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if("EMW3080B" IN_LIST MBED_TARGET_LABELS)
5-
create_mbed_wifi_target()
65
add_subdirectory(COMPONENT_EMW3080B EXCLUDE_FROM_ALL)
76
endif()

0 commit comments

Comments
 (0)