diff --git a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H745xI/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H745xI/CMakeLists.txt index 1cce4eae7f6..8a1b722aaf0 100644 --- a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H745xI/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H745xI/CMakeLists.txt @@ -1,9 +1,10 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -add_subdirectory(TARGET_STM32H745xI_CM4 EXCLUDE_FROM_ALL) -add_subdirectory(TARGET_STM32H745xI_CM7 EXCLUDE_FROM_ALL) - add_library(mbed-stm32h745xi INTERFACE) target_link_libraries(mbed-stm32h745xi INTERFACE mbed-stm32h7) + +add_subdirectory(TARGET_STM32H745xI_CM7 EXCLUDE_FROM_ALL) +add_subdirectory(TARGET_STM32H745xI_CM4 EXCLUDE_FROM_ALL) +add_subdirectory(TARGET_NUCLEO_H745ZI_Q EXCLUDE_FROM_ALL)