Fix messed up CMake targets for NUCLEO_H745ZI_Q (#363)

pull/15530/head
Jamie Smith 2024-09-24 23:49:26 -07:00 committed by GitHub
parent f5417f7bed
commit d5278aa9c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 33 deletions

View File

@ -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)

View File

@ -8,39 +8,12 @@ target_sources(mbed-nucleo-h745zi-q
PeripheralPins.c
)
target_include_directories(mbed-nucleo-h745i
target_include_directories(mbed-nucleo-h745zi-q
INTERFACE
.
)
target_link_libraries(mbed-nucleo-h745zi-q INTERFACE mbed-stm32h745xi-cm7)
add_library(mbed-nucleo-h745i-cm7 INTERFACE)
target_sources(mbed-nucleo-h745i-cm7
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-nucleo-h745zi-cm7
INTERFACE
.
)
target_link_libraries(mbed-nucleo-h745zi-cm7 INTERFACE mbed-stm32h745xi-cm7)
add_library(mbed-nucleo-h745zi-cm4 INTERFACE)
target_sources(mbed-nucleo-h745zi-cm4
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-nucleo-h745i-cm4
INTERFACE
.
)
target_link_libraries(mbed-nucleo-h745zi-cm4 INTERFACE mbed-stm32h745xi-cm4)
add_library(mbed-nucleo-h745zi-q-cm7 ALIAS mbed-nucleo-h745zi-q)
add_library(mbed-nucleo-h745zi-q-cm4 ALIAS mbed-nucleo-h745zi-q)