mirror of
https://github.com/reactos/CMake.git
synced 2024-12-02 16:46:36 +00:00
ExternalProject: Initialize Git submodules recursively and on update (#16083)
This commit is contained in:
parent
24b2a36778
commit
79410eeb1f
7
Help/release/dev/ExternalProject-git-recursive-init.rst
Normal file
7
Help/release/dev/ExternalProject-git-recursive-init.rst
Normal file
@ -0,0 +1,7 @@
|
||||
ExternalProject-git-recursive-init
|
||||
----------------------------------
|
||||
|
||||
* The :module:`ExternalProject` module learned to initialize Git submodules
|
||||
recursively and also to initialize new submodules on updates. Use the
|
||||
``GIT_SUBMODULES`` option to restrict which submodules are initalized and
|
||||
updated.
|
@ -587,7 +587,7 @@ if(error_code)
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND \"${git_EXECUTABLE}\" \${git_options} submodule update --recursive ${git_submodules}
|
||||
COMMAND \"${git_EXECUTABLE}\" \${git_options} submodule update --recursive --init ${git_submodules}
|
||||
WORKING_DIRECTORY \"${work_dir}/${src_name}\"
|
||||
RESULT_VARIABLE error_code
|
||||
)
|
||||
@ -833,7 +833,7 @@ if(error_code OR is_remote_ref OR NOT (\"\${tag_sha}\" STREQUAL \"\${head_sha}\"
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND \"${git_EXECUTABLE}\" submodule update --recursive ${git_submodules}
|
||||
COMMAND \"${git_EXECUTABLE}\" submodule update --recursive --init ${git_submodules}
|
||||
WORKING_DIRECTORY \"${work_dir}/${src_name}\"
|
||||
RESULT_VARIABLE error_code
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user