automatic submodule update

dev-v0.11
wowario 1 year ago
parent 36edf137e4
commit 67e03a315a
No known key found for this signature in database
GPG Key ID: 793504B449C69220

@ -359,7 +359,8 @@ if(NOT MANUAL_SUBMODULES)
if (upToDate)
message(STATUS "Submodule '${relative_path}' is up-to-date")
else()
message(FATAL_ERROR "Submodule '${relative_path}' is not up-to-date. Please update all submodules with\ngit submodule update --init --force\nor run cmake with -DMANUAL_SUBMODULES=1\n")
message(STATUS "Initializing submodules")
execute_process(COMMAND git "submodule" "update" "--init" "--recursive" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif()
endfunction ()

Loading…
Cancel
Save