Skip to content

Commit

Permalink
Fix creation of mbed-wifi target to top directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ccli8 committed Oct 17, 2024
1 parent dfa5925 commit b3a4279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions connectivity/drivers/wifi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ if("WICED" IN_LIST MBED_TARGET_LABELS)
endif()

if("STM" IN_LIST MBED_TARGET_LABELS)
if("EMW3080B" IN_LIST MBED_TARGET_LABELS)
create_mbed_wifi_target()
endif()
add_subdirectory(TARGET_STM EXCLUDE_FROM_ALL)
endif()

Expand Down
1 change: 0 additions & 1 deletion connectivity/drivers/wifi/TARGET_STM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
# SPDX-License-Identifier: Apache-2.0

if("EMW3080B" IN_LIST MBED_TARGET_LABELS)
create_mbed_wifi_target()
add_subdirectory(COMPONENT_EMW3080B EXCLUDE_FROM_ALL)
endif()

0 comments on commit b3a4279

Please sign in to comment.