[cmake-developers] [CMake 0016083]: ExternalProject with empty GIT_SUBMODULES does not initialize submodules of submodules

Mantis Bug Tracker mantis at public.kitware.com
Tue Apr 26 17:13:58 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16083 
====================================================================== 
Reported By:                Ilya
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16083
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-04-26 17:13 EDT
Last Modified:              2016-04-26 17:13 EDT
====================================================================== 
Summary:                    ExternalProject with empty GIT_SUBMODULES does not
initialize submodules of submodules
Description: 
Current implementation uses the following command to get submodules:

1. `git submodule init`
2. `submodule update --recursive`

This is enough to initialize direct submodules of the repo, however it leaves
submodules of submodules uninitialized.

To address this, [2] (and possibly [1]) must be changed to `submodule update
--recursive --init`

Steps to Reproduce: 
1. Add an external project that has submodule which has its own submodule
2. Try to pull sources of this project
3. Check that submodule of submodule was not initialized
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-04-26 17:13 Ilya           New Issue                                    
======================================================================



More information about the cmake-developers mailing list