summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/FileTestScript.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/CMakeTests/FileTestScript.cmake
parent1138907a58402f8004a6c6ff163a30b58239ece7 (diff)
downloadCMake-fed7d8f76de3442f4aede00f8e47c3d142f73e94.zip
CMake-fed7d8f76de3442f4aede00f8e47c3d142f73e94.tar.gz
CMake-fed7d8f76de3442f4aede00f8e47c3d142f73e94.tar.bz2
file(DOWNLOAD): Make file argument optional
Diffstat (limited to 'Tests/CMakeTests/FileTestScript.cmake')
-rw-r--r--Tests/CMakeTests/FileTestScript.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeTests/FileTestScript.cmake b/Tests/CMakeTests/FileTestScript.cmake
index 145f28a..fc3c28a 100644
--- a/Tests/CMakeTests/FileTestScript.cmake
+++ b/Tests/CMakeTests/FileTestScript.cmake
@@ -10,7 +10,7 @@ elseif(testname STREQUAL different_not_enough_args) # fail
file(DIFFERENT ffff)
elseif(testname STREQUAL download_not_enough_args) # fail
- file(DOWNLOAD ffff)
+ file(DOWNLOAD)
elseif(testname STREQUAL read_not_enough_args) # fail
file(READ ffff)
@@ -181,7 +181,7 @@ elseif(testname STREQUAL to_native_path) # pass
message("v='${v}'")
elseif(testname STREQUAL download_wrong_number_of_args) # fail
- file(DOWNLOAD zzzz://bogus/ffff)
+ file(DOWNLOAD)
elseif(testname STREQUAL download_file_with_no_path) # pass
file(DOWNLOAD zzzz://bogus/ffff ffff)