Skip to content

Commit a63904a

Browse files
committed
Makefile generator now ensures that all submodules have been cloned
1 parent 29a9ab7 commit a63904a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ else()
3030
)
3131
endif()
3232

33+
###
34+
# Make sure submodules are updated
35+
###
36+
message("Ensuring repository has all submodules...")
37+
execute_process(
38+
COMMAND git submodule update --init --recursive
39+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
40+
)
41+
3342
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/submodules/date)
3443
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/submodules/fmt)
3544

0 commit comments

Comments
 (0)