We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3966595 + edadcfa commit 74f1295Copy full SHA for 74f1295
cmake/OpenCVDownload.cmake
@@ -156,10 +156,12 @@ function(ocv_download)
156
TIMEOUT 600
157
STATUS status
158
LOG __log)
159
- string(LENGTH "${__log}" __log_length)
160
- if(__log_length LESS 65536)
161
- string(REPLACE "\n" "\n# " __log "${__log}")
162
- 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}")
163
+ ocv_download_log("# ${__log}\n")
164
+ endif()
165
endif()
166
if(NOT status EQUAL 0)
167
set(msg_level FATAL_ERROR)
0 commit comments