Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
0303fa0a
Commit
0303fa0a
authored
8 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8958 from alalek:update_download
parents
92c0709c
d29c299c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
.gitignore
.gitignore
+1
-0
OpenCVDownload.cmake
cmake/OpenCVDownload.cmake
+22
-1
No files found.
.gitignore
View file @
0303fa0a
...
...
@@ -21,3 +21,4 @@ bin/
*.log
*.tlog
build
.cache
This diff is collapsed.
Click to expand it.
cmake/OpenCVDownload.cmake
View file @
0303fa0a
...
...
@@ -167,7 +167,28 @@ function(ocv_download)
set
(
${
DL_STATUS
}
FALSE PARENT_SCOPE
)
set
(
msg_level WARNING
)
endif
()
message
(
${
msg_level
}
"
${
__msg_prefix
}
Download failed:
${
status
}
"
)
if
(
status MATCHES
"Couldn't resolve host name"
)
message
(
STATUS
"
=======================================================================
Couldn't download files from the Internet.
Please check the Internet access on this host.
=======================================================================
"
)
elseif
(
status MATCHES
"Couldn't connect to server"
)
message
(
STATUS
"
=======================================================================
Couldn't connect to server from the Internet.
Perhaps direct connections are not allowed in the current network.
To use proxy please check/specify these environment variables:
- http_proxy/https_proxy
- and/or HTTP_PROXY/HTTPS_PROXY
=======================================================================
"
)
endif
()
message
(
${
msg_level
}
"
${
__msg_prefix
}
Download failed:
${
status
}
For details please refer to the download log file:
${
OPENCV_DOWNLOAD_LOG
}
"
)
return
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment