Commit 74f12957 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #10295 from alalek:cmake_workaround_download_log_issue

parents 3966595f edadcfa7
......@@ -156,11 +156,13 @@ function(ocv_download)
TIMEOUT 600
STATUS status
LOG __log)
if(NOT OPENCV_SKIP_FILE_DOWNLOAD_DUMP) # workaround problem with old CMake versions: "Invalid escape sequence"
string(LENGTH "${__log}" __log_length)
if(__log_length LESS 65536)
string(REPLACE "\n" "\n# " __log "${__log}")
ocv_download_log("# ${__log}\n")
endif()
endif()
if(NOT status EQUAL 0)
set(msg_level FATAL_ERROR)
if(DEFINED DL_STATUS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment