Skip to content

Commit d5278aa

Browse files
author
Jamie Smith
authored
Fix messed up CMake targets for NUCLEO_H745ZI_Q (#363)
1 parent f5417f7 commit d5278aa

File tree

2 files changed

+7
-33
lines changed

2 files changed

+7
-33
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
add_subdirectory(TARGET_STM32H745xI_CM4 EXCLUDE_FROM_ALL)
5-
add_subdirectory(TARGET_STM32H745xI_CM7 EXCLUDE_FROM_ALL)
6-
74
add_library(mbed-stm32h745xi INTERFACE)
85

96
target_link_libraries(mbed-stm32h745xi INTERFACE mbed-stm32h7)
7+
8+
add_subdirectory(TARGET_STM32H745xI_CM7 EXCLUDE_FROM_ALL)
9+
add_subdirectory(TARGET_STM32H745xI_CM4 EXCLUDE_FROM_ALL)
10+
add_subdirectory(TARGET_NUCLEO_H745ZI_Q EXCLUDE_FROM_ALL)

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H745xI/TARGET_NUCLEO_H745ZI_Q/CMakeLists.txt

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,12 @@ target_sources(mbed-nucleo-h745zi-q
88
PeripheralPins.c
99
)
1010

11-
target_include_directories(mbed-nucleo-h745i
11+
target_include_directories(mbed-nucleo-h745zi-q
1212
INTERFACE
1313
.
1414
)
1515

1616
target_link_libraries(mbed-nucleo-h745zi-q INTERFACE mbed-stm32h745xi-cm7)
1717

18-
19-
add_library(mbed-nucleo-h745i-cm7 INTERFACE)
20-
21-
target_sources(mbed-nucleo-h745i-cm7
22-
INTERFACE
23-
PeripheralPins.c
24-
)
25-
26-
target_include_directories(mbed-nucleo-h745zi-cm7
27-
INTERFACE
28-
.
29-
)
30-
31-
target_link_libraries(mbed-nucleo-h745zi-cm7 INTERFACE mbed-stm32h745xi-cm7)
32-
33-
34-
add_library(mbed-nucleo-h745zi-cm4 INTERFACE)
35-
36-
target_sources(mbed-nucleo-h745zi-cm4
37-
INTERFACE
38-
PeripheralPins.c
39-
)
40-
41-
target_include_directories(mbed-nucleo-h745i-cm4
42-
INTERFACE
43-
.
44-
)
45-
46-
target_link_libraries(mbed-nucleo-h745zi-cm4 INTERFACE mbed-stm32h745xi-cm4)
18+
add_library(mbed-nucleo-h745zi-q-cm7 ALIAS mbed-nucleo-h745zi-q)
19+
add_library(mbed-nucleo-h745zi-q-cm4 ALIAS mbed-nucleo-h745zi-q)

0 commit comments

Comments
 (0)