mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
14c771530a
Since upstream curl commit curl-7_52_0~131 (URL-parser: for file://[host]/ URLs, the [host] must be localhost, 2016-11-11) we can no longer use URLs of the form `file://c:/...` on Windows. These worked only accidentally before. Use `file:///c:/...` instead.
11 lines
322 B
CMake
11 lines
322 B
CMake
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" MATCHES "^/")
|
|
set(slash /)
|
|
endif()
|
|
file(DOWNLOAD
|
|
"file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/DOWNLOAD-hash-mismatch.txt"
|
|
${CMAKE_CURRENT_BINARY_DIR}/hash-mismatch.txt
|
|
EXPECTED_HASH SHA1=0123456789abcdef0123456789abcdef01234567
|
|
STATUS status
|
|
)
|
|
message("status='${status}'")
|