summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/DOWNLOAD-no-save-hash.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-07-24 20:22:33 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-07-27 15:26:50 (GMT)
commitfed7d8f76de3442f4aede00f8e47c3d142f73e94 (patch)
treeaf8c7a0cee11b400b3422cacd4d7654d7796a795 /Tests/RunCMake/file/DOWNLOAD-no-save-hash.cmake
parent1138907a58402f8004a6c6ff163a30b58239ece7 (diff)
downloadCMake-fed7d8f76de3442f4aede00f8e47c3d142f73e94.zip
CMake-fed7d8f76de3442f4aede00f8e47c3d142f73e94.tar.gz
CMake-fed7d8f76de3442f4aede00f8e47c3d142f73e94.tar.bz2
file(DOWNLOAD): Make file argument optional
Diffstat (limited to 'Tests/RunCMake/file/DOWNLOAD-no-save-hash.cmake')
-rw-r--r--Tests/RunCMake/file/DOWNLOAD-no-save-hash.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/DOWNLOAD-no-save-hash.cmake b/Tests/RunCMake/file/DOWNLOAD-no-save-hash.cmake
new file mode 100644
index 0000000..ce959a7
--- /dev/null
+++ b/Tests/RunCMake/file/DOWNLOAD-no-save-hash.cmake
@@ -0,0 +1,8 @@
+if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" MATCHES "^/")
+ set(slash /)
+endif()
+file(DOWNLOAD
+ "file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/DOWNLOAD-no-save-md5.txt"
+ EXPECTED_HASH MD5=55555555555555555555555555555555
+ STATUS status
+ )