mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
cmake: add directory creation to download helper scripts
This commit is contained in:
parent
d974d4c6ce
commit
9d4f01626c
@ -204,8 +204,8 @@ For details please refer to the download log file:
|
|||||||
${OPENCV_DOWNLOAD_LOG}
|
${OPENCV_DOWNLOAD_LOG}
|
||||||
")
|
")
|
||||||
# write helper scripts for failed downloads
|
# write helper scripts for failed downloads
|
||||||
file(APPEND "${OPENCV_DOWNLOAD_WITH_CURL}" "curl --output \"${CACHE_CANDIDATE}\" \"${DL_URL}\"\n")
|
file(APPEND "${OPENCV_DOWNLOAD_WITH_CURL}" "curl --create-dirs --output \"${CACHE_CANDIDATE}\" \"${DL_URL}\"\n")
|
||||||
file(APPEND "${OPENCV_DOWNLOAD_WITH_WGET}" "wget -O \"${CACHE_CANDIDATE}\" \"${DL_URL}\"\n")
|
file(APPEND "${OPENCV_DOWNLOAD_WITH_WGET}" "mkdir -p $(dirname ${CACHE_CANDIDATE}) && wget -O \"${CACHE_CANDIDATE}\" \"${DL_URL}\"\n")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user