mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00: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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user