mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 15:20:51 +08:00
cmake: add option to workaround issue observed with old CMake
CMake message contains this: "Invalid escape sequence \"
This commit is contained in:
parent
ce20efb8e7
commit
edadcfa7d9
@ -156,10 +156,12 @@ function(ocv_download)
|
|||||||
TIMEOUT 600
|
TIMEOUT 600
|
||||||
STATUS status
|
STATUS status
|
||||||
LOG __log)
|
LOG __log)
|
||||||
string(LENGTH "${__log}" __log_length)
|
if(NOT OPENCV_SKIP_FILE_DOWNLOAD_DUMP) # workaround problem with old CMake versions: "Invalid escape sequence"
|
||||||
if(__log_length LESS 65536)
|
string(LENGTH "${__log}" __log_length)
|
||||||
string(REPLACE "\n" "\n# " __log "${__log}")
|
if(__log_length LESS 65536)
|
||||||
ocv_download_log("# ${__log}\n")
|
string(REPLACE "\n" "\n# " __log "${__log}")
|
||||||
|
ocv_download_log("# ${__log}\n")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(NOT status EQUAL 0)
|
if(NOT status EQUAL 0)
|
||||||
set(msg_level FATAL_ERROR)
|
set(msg_level FATAL_ERROR)
|
||||||
|
Loading…
Reference in New Issue
Block a user