diff options
author | Brad King <brad.king@kitware.com> | 2016-05-03 10:17:02 -0400 |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-05-03 10:17:02 -0400 |
commit | e053510efa72fe4c4e647ccd9e9168d0e187ffd2 (patch) | |
tree | 2837dff30290a6399fb5a8bef3d989965794c9ff /Modules | |
parent | 3fc49c50b0a62ab66376b624d1d38e30ffbbc4dd (diff) | |
parent | 79410eeb1f32974aaf1e95aef439a4709fafbc8e (diff) | |
download | cmake-e053510efa72fe4c4e647ccd9e9168d0e187ffd2.tar.gz |
Merge topic 'ExternalProject-git-recursive-init'
79410eeb ExternalProject: Initialize Git submodules recursively and on update (#16083)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/ExternalProject.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 9cc8a20a29..7dad6e5255 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -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 ) |