diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2016-05-19 11:41:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-19 14:58:08 (GMT) |
commit | e5409d1e0f38c9869748cca6f6f0c089a3e40ee1 (patch) | |
tree | 6d6c5666552a0c3958cbeac1d5756e3bf1230239 /Modules/ExternalProject.cmake | |
parent | d610407cca18af075693d4e9243aee06c4ce469c (diff) | |
download | CMake-e5409d1e0f38c9869748cca6f6f0c089a3e40ee1.zip CMake-e5409d1e0f38c9869748cca6f6f0c089a3e40ee1.tar.gz CMake-e5409d1e0f38c9869748cca6f6f0c089a3e40ee1.tar.bz2 |
ExternalProject: Remove unused 'retries' argument from verify script
There is no retries for local files and retry logic is broken for downloads.
Will be implemented in '*-download.cmake' script.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r-- | Modules/ExternalProject.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index f30f8a5..e97ecfc 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -935,7 +935,8 @@ message(STATUS \"downloading... done\") endfunction() -function(_ep_write_verifyfile_script script_filename LOCAL hash retries download_script) +function(_ep_write_verifyfile_script script_filename LOCAL hash download_script) + set(retries 0) if("${hash}" MATCHES "${_ep_hash_regex}") set(algo "${CMAKE_MATCH_1}") string(TOLOWER "${CMAKE_MATCH_2}" expect_value) @@ -1898,7 +1899,6 @@ function(_ep_add_download_command name) set(repository "external project URL") set(module "${url}") set(tag "${hash}") - set(retries 0) set(download_script "") configure_file( "${CMAKE_ROOT}/Modules/RepositoryInfo.txt.in" @@ -1937,7 +1937,6 @@ function(_ep_add_download_command name) _ep_write_downloadfile_script("${download_script}" "${url}" "${file}" "${timeout}" "${no_progress}" "${hash}" "${tls_verify}" "${tls_cainfo}") set(cmd ${CMAKE_COMMAND} -P "${download_script}" COMMAND) - set(retries 3) if (no_extract) set(steps "download and verify") else () @@ -1953,7 +1952,7 @@ function(_ep_add_download_command name) endif () set(comment "Performing download step (${steps}) for '${name}'") endif() - _ep_write_verifyfile_script("${stamp_dir}/verify-${name}.cmake" "${file}" "${hash}" "${retries}" "${download_script}") + _ep_write_verifyfile_script("${stamp_dir}/verify-${name}.cmake" "${file}" "${hash}" "${download_script}") list(APPEND cmd ${CMAKE_COMMAND} -P ${stamp_dir}/verify-${name}.cmake COMMAND) if (NOT no_extract) |