mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
build: allow skipping of the hash check in the download step
This is useful when trying to bisect an issue in a dependency, and we want to pull from a specific commit but don't want to have to download and determine the sha1sum and md5sum of the tarball.
This commit is contained in:
parent
3bbbeaf2c9
commit
02b995478b
@ -59,10 +59,14 @@ message(STATUS "downloading...
|
||||
timeout='${timeout_msg}'")
|
||||
|
||||
if((DEFINED EXPECTED_SHA1) AND (${CMAKE_VERSION} VERSION_GREATER 2.8.10))
|
||||
if(NOT (EXPECTED_SHA1 STREQUAL "0000000000000000000000000000000000000000"))
|
||||
set(hash_args EXPECTED_HASH SHA1=${EXPECTED_SHA1})
|
||||
endif()
|
||||
else()
|
||||
if(NOT (EXPECTED_MD5 STREQUAL "00000000000000000000000000000000"))
|
||||
set(hash_args EXPECTED_MD5 ${EXPECTED_MD5})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(DOWNLOAD ${URL} ${file}
|
||||
${timeout_args}
|
||||
|
Loading…
Reference in New Issue
Block a user