Proposal: Add CPM_MIRROR_PATH
to automatically redirect all package fetches to a local mirror with fallback
#658
TobiasWallner
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to propose adding a new environment variable/CMake option 1:
This variable would automatically redirect all
GITHUB_REPOSITORY
orGIT_REPOSITORY
downloads to a custom mirror location. For example:would internally try:
If the mirror clone fails, CPM can then still gracefully fall back to the original upstream GitHub URL. Or not if
CMAKE_MIRROR_NO_FALLBACK
is set or something like that.This would:
CPM_OVERRIDE_*
scripts.Let me know if this aligns with the project's direction—I'd be happy to help implement this.
Footnotes
I searched for
mirror
,redirect
,override
, in discussions/code/readme but could only find the name secificCPM_OVERRIDE_*
and not a global one. ↩Beta Was this translation helpful? Give feedback.
All reactions