mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
automatic submodule update
This commit is contained in:
parent
5964374c4b
commit
917edfbec9
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue