diff options
author | Silvio Traversaro <silvio.traversaro@iit.it> | 2015-05-28 14:22:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-02 18:31:26 (GMT) |
commit | 14e2c3ad181e2090cb0846fb87743f7543484d08 (patch) | |
tree | 0819afe46a40548a6a0d8e3bd71a0974d56d02ad | |
parent | d3bb5da9294ddbfcc5fddf7ba3dafd2c3e0b32b2 (diff) | |
download | CMake-14e2c3ad181e2090cb0846fb87743f7543484d08.zip CMake-14e2c3ad181e2090cb0846fb87743f7543484d08.tar.gz CMake-14e2c3ad181e2090cb0846fb87743f7543484d08.tar.bz2 |
ExternalProject: Initialize only selected git submodules (#15590)
Honor the GIT_SUBMODULES option added by commit v3.0.0-rc1~92^2
(ExternalProject: Add option GIT_SUBMODULES, 2014-01-09) during the
'git submodule init' step to avoid initalizing all modules since we
are only going to update the specified subset anyway. This will
be useful for project repositories that have many submodules
(e.g. https://github.com/boostorg/boost).
Reviewed-by: Daniele E. Domenichelli <daniele.domenichelli@iit.it>
-rw-r--r-- | Modules/ExternalProject.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 11a24b8..eee1841 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -529,7 +529,7 @@ if(error_code) endif() execute_process( - COMMAND \"${git_EXECUTABLE}\" submodule init + COMMAND \"${git_EXECUTABLE}\" submodule init ${git_submodules} WORKING_DIRECTORY \"${work_dir}/${src_name}\" RESULT_VARIABLE error_code ) |