Skip to content

Commit 9dcffe1

Browse files
try to fix ci/cd
1 parent 04ed0f7 commit 9dcffe1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ message(STATUS "${PROJECT_NAME} Ethernet: ${USE_ETHERNET}")
2121
message(STATUS "${PROJECT_NAME} Nucleo: ${TARGET_NUCLEO}")
2222
message(STATUS "${PROJECT_NAME} Crosscompiling: ${CMAKE_CROSSCOMPILING}")
2323

24+
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/STM32CubeH7/Drivers/CMSIS/Device/ST/STM32H7xx/Include)
25+
execute_process(
26+
COMMAND git submodule update --init
27+
)
28+
execute_process(
29+
COMMAND git submodule update --init --depth 1 STM32CubeH7/Drivers/CMSIS/Device/ST/STM32H7xx
30+
)
31+
endif()
2432

2533
if(NOT CMAKE_CROSSCOMPILING)
2634
message(STATUS "Compiling for simulator")

0 commit comments

Comments
 (0)