diff options
author | Bartosz Kosiorek <bartosz.kosiorek@tomtom.com> | 2019-03-13 14:41:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-03-14 17:45:35 (GMT) |
commit | 8355665f8df5d9e1de5a50cb78d62071f55b7b43 (patch) | |
tree | 02156ede5ab1142f2ad4be076387f1cdb26b7176 /Modules | |
parent | 00b5f1a1b5f44167184e5602385986172afa7a3a (diff) | |
download | CMake-8355665f8df5d9e1de5a50cb78d62071f55b7b43.zip CMake-8355665f8df5d9e1de5a50cb78d62071f55b7b43.tar.gz CMake-8355665f8df5d9e1de5a50cb78d62071f55b7b43.tar.bz2 |
ExternalProject: Drop unnecessary 'git submodule init'
Since commit 79410eeb1f (ExternalProject: Initialize Git submodules
recursively and on update (#16083), 2016-04-26, v3.6.0-rc1~105^2) our
`git submodule update` step uses the `--init` flag. This makes the
prior `git submodule init` unnecessary.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/ExternalProject.cmake | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 278020c..96250d3 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -1142,15 +1142,6 @@ if(error_code) endif() execute_process( - COMMAND \"${git_EXECUTABLE}\" \${git_options} submodule init ${git_submodules} - WORKING_DIRECTORY \"${work_dir}/${src_name}\" - RESULT_VARIABLE error_code - ) -if(error_code) - message(FATAL_ERROR \"Failed to init submodules in: '${work_dir}/${src_name}'\") -endif() - -execute_process( COMMAND \"${git_EXECUTABLE}\" \${git_options} submodule update --recursive --init ${git_submodules} WORKING_DIRECTORY \"${work_dir}/${src_name}\" RESULT_VARIABLE error_code |