MantisBT - CMake
View Issue Details
0014452CMakeModulespublic2013-10-02 04:272016-06-10 14:31
Jaak Ristioja 
Kitware Robot 
normalfeaturealways
closedmoved 
 
 
0014452: Provide means to prevent ExternalProject module from using git submodules
Currently, the ExternalProject module initializes, fetches and updates git submodules by default, with no means to disable this feature. Please provide means to disable it, e.g. by ExternalProject_Add argument "GIT_NO_USE_SUBMODULES" or similar. This is needed for certain build setups.

Thanks! :)
No tags attached.
Issue History
2013-10-02 04:27Jaak RistiojaNew Issue
2013-10-07 10:08David ColeNote Added: 0034029
2016-06-10 14:29Kitware RobotNote Added: 0042381
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0034029)
David Cole   
2013-10-07 10:08   
The "means" that ExternalProject provides to disable the commands it runs is that you can override the command entirely, and do whatever you want for that step.

For the git download and update steps, ExternalProject generates scripts to run via cmake -P that involve many git operations to take things like submodules and upstream re-writes into account...

You can certainly, with CMake as is, write your own UPDATE_COMMAND, rather than relying on the built-in one that gets used by default when you specify a git repo.

On the other hand, your request will certainly be useful for others. If you can attach a proposed patch, it will certainly be considered by the CMake developers.
(0042381)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.