diff options
author | Ilya Kulakov <kulakov.ilya@gmail.com> | 2016-04-26 18:50:38 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-03 10:04:37 -0400 |
commit | 79410eeb1f32974aaf1e95aef439a4709fafbc8e (patch) | |
tree | 2a792cc6b72ca2bb2e95ba9f062f3241a5074535 /Modules | |
parent | 24b2a36778fd65f7066a964cf9f5d249f8e0f101 (diff) | |
download | cmake-79410eeb1f32974aaf1e95aef439a4709fafbc8e.tar.gz |
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 ) |