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
d29c299c
Commit
d29c299c
authored
Jun 21, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: additional messages on download errors
parent
f0e3431b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
OpenCVDownload.cmake
cmake/OpenCVDownload.cmake
+22
-1
No files found.
cmake/OpenCVDownload.cmake
View file @
d29c299c
...
...
@@ -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
()
...
...
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