summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorIlya Kulakov <kulakov.ilya@gmail.com>2016-04-26 22:50:38 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-03 14:04:37 (GMT)
commit79410eeb1f32974aaf1e95aef439a4709fafbc8e (patch)
tree2a792cc6b72ca2bb2e95ba9f062f3241a5074535 /Modules
parent24b2a36778fd65f7066a964cf9f5d249f8e0f101 (diff)
downloadCMake-79410eeb1f32974aaf1e95aef439a4709fafbc8e.zip
CMake-79410eeb1f32974aaf1e95aef439a4709fafbc8e.tar.gz
CMake-79410eeb1f32974aaf1e95aef439a4709fafbc8e.tar.bz2
ExternalProject: Initialize Git submodules recursively and on update (#16083)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ExternalProject.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 9cc8a20..7dad6e5 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
)