mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #10295 from alalek:cmake_workaround_download_log_issue
This commit is contained in:
commit
74f1295756
@ -156,10 +156,12 @@ function(ocv_download)
|
||||
TIMEOUT 600
|
||||
STATUS status
|
||||
LOG __log)
|
||||
string(LENGTH "${__log}" __log_length)
|
||||
if(__log_length LESS 65536)
|
||||
string(REPLACE "\n" "\n# " __log "${__log}")
|
||||
ocv_download_log("# ${__log}\n")
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user