diff options
author | John Szakmeister <john@szakmeister.net> | 2015-02-09 06:26:59 -0500 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2015-02-09 06:30:17 -0500 |
commit | aa45a2c6cf8d2c58b3190d5d190cf06dc0ff8641 (patch) | |
tree | 0c74600107512d2431cb2d700942dd60936f281b | |
parent | 2019380bfae3cd8609c7f8b57d27a934370a5e8e (diff) | |
download | rneovim-aa45a2c6cf8d2c58b3190d5d190cf06dc0ff8641.tar.gz rneovim-aa45a2c6cf8d2c58b3190d5d190cf06dc0ff8641.tar.bz2 rneovim-aa45a2c6cf8d2c58b3190d5d190cf06dc0ff8641.zip |
build: allow SKIP or skip to be used as the SHA1
This will skip hash checking, just like the all zeros hash.
-rw-r--r-- | third-party/cmake/DownloadAndExtractFile.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/third-party/cmake/DownloadAndExtractFile.cmake b/third-party/cmake/DownloadAndExtractFile.cmake index bdf8742af1..875d45795d 100644 --- a/third-party/cmake/DownloadAndExtractFile.cmake +++ b/third-party/cmake/DownloadAndExtractFile.cmake @@ -77,6 +77,12 @@ endif() set(NULL_SHA1 "0000000000000000000000000000000000000000") +# Allow users to use "SKIP" or "skip" as the sha1 to skip checking the hash. +# You can still use the all zeros hash too. +if((EXPECTED_SHA1 STREQUAL "SKIP") OR (EXPECTED_SHA1 STREQUAL "skip")) + set(EXPECTED_SHA1 ${NULL_SHA1}) +endif() + # We could avoid computing the SHA1 entirely if a NULL_SHA1 was given, # but we want to warn users of an empty file. file(SHA1 ${file} ACTUAL_SHA1) |