Repository navigation
cmake: download tries, customizable download parameters - #15449
Merged
Merged
Conversation
Member
This is confusing approach. This should be a single number. Also it would be nice to support some value to turn off downloading completely (but use cache). Something like this. |
Contributor
Author
|
I agree, it is confusing but I don't think it is an issue:
Maybe we should mark these variables as It is possible to turn download off by providing an empty list: cmake -DOPENCV_DOWNLOAD_TRIES= ../opencv
# a bunch of warnings is shown ...
bash download_with_curl.sh
cmake . |
mshabunin
force-pushed
the
cmake-download-params
branch
from
September 4, 2019 14:22
bb4c98e to
9d4f016
Compare
opencv-pushbot
pushed a commit
that referenced
this pull request
Sep 13, 2019
Merged
SavyaSanchi-Sharma
pushed a commit
to SavyaSanchi-Sharma/opencv
that referenced
this pull request
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #13573
This pullrequest changes
Adds two paramters to customize cmake download process for unstable and slow networks:
OPENCV_DOWNLOAD_TRIES_LIST- list of items representing download tries:OPENCV_DOWNLOAD_PARAMS- raw parameter string to be used in cmake'sfile(DOWNLOAD ...)calldownload_with_*.shscriptsExamples:
bash:
cmake \ -DOPENCV_DOWNLOAD_TRIES_LIST=1\;2\;3\;4\;5 \ -DOPENCV_DOWNLOAD_PARAMS=INACTIVITY_TIMEOUT\;30\;TIMEOUT\;180\;SHOW_PROGRESS \ ../opencvcmd:
Edit: renamed to
OPENCV_DOWNLOAD_TRIES=>OPENCV_DOWNLOAD_TRIES_LIST, marked both variables as advanced.