You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some projects that project depends on may have a large number of submodules.
Can CPM clone these projects without history or with a history depth limitation for all submodules?
CPM itself does not handle the download/clone operation. This task is performed by CMake's FetchContent module.
You can add GIT_SHALLOW TRUE to the CPMAddPackage call, although I am unsure if this setting is forwarded when cloning submodules. Other than that, there isn't much we can do.
For more options related to git, you can take a look here.
I only took a quick look, but haven't found anything that could help.
On a sidenote: Any argument that isn't part of the CPMAddPackage signature is forwarded to FetchContent_*.
(We should probably document this somewhere if it isn't : ) )
Some projects that project depends on may have a large number of submodules.
Can CPM clone these projects without history or with a history depth limitation for all submodules?
I.e.: https://stackoverflow.com/a/17692710/7883447
Is it possible?
This will probably have a good effect on increasing build speed.
The text was updated successfully, but these errors were encountered: