6c9586f9c7
Although we fail with an error on a hash mismatch, it is not a fatal error so the script may continue processing. If the download itself had no error then report in the STATUS variable that the operation was not successful due to the hash mismatch. Suggested-by: Tobias Hieta <tobias@hieta.se>
8 lines
240 B
CMake
8 lines
240 B
CMake
file(DOWNLOAD
|
|
"file://${CMAKE_CURRENT_SOURCE_DIR}/DOWNLOAD-hash-mismatch.txt"
|
|
${CMAKE_CURRENT_BINARY_DIR}/hash-mismatch.txt
|
|
EXPECTED_HASH SHA1=0123456789abcdef0123456789abcdef01234567
|
|
STATUS status
|
|
)
|
|
message("status='${status}'")
|