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,9 +59,13 @@ message(STATUS "downloading...
|
|||||||
timeout='${timeout_msg}'")
|
timeout='${timeout_msg}'")
|
||||||
|
|
||||||
if((DEFINED EXPECTED_SHA1) AND (${CMAKE_VERSION} VERSION_GREATER 2.8.10))
|
if((DEFINED EXPECTED_SHA1) AND (${CMAKE_VERSION} VERSION_GREATER 2.8.10))
|
||||||
set(hash_args EXPECTED_HASH SHA1=${EXPECTED_SHA1})
|
if(NOT (EXPECTED_SHA1 STREQUAL "0000000000000000000000000000000000000000"))
|
||||||
|
set(hash_args EXPECTED_HASH SHA1=${EXPECTED_SHA1})
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
set(hash_args EXPECTED_MD5 ${EXPECTED_MD5})
|
if(NOT (EXPECTED_MD5 STREQUAL "00000000000000000000000000000000"))
|
||||||
|
set(hash_args EXPECTED_MD5 ${EXPECTED_MD5})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(DOWNLOAD ${URL} ${file}
|
file(DOWNLOAD ${URL} ${file}
|
||||||
|
Reference in New Issue
Block a user