mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 15:42:52 +00:00
Merge pull request #1554 from jszakmeister/allow-skipping-of-sum
build: allow skipping of the hash check in the download step
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