summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2016-09-09 20:19:39 (GMT)
committerRuslan Baratov <ruslan_baratov@yahoo.com>2016-09-09 20:19:39 (GMT)
commit4dd997da541be93b0cfacdd8483eaec8dd2a76d5 (patch)
tree6e906990cdac22724553fbe4a9cf5e0be8961684 /Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake
parentd5e4cdc0f8c846cdf17f3276d77d352a7644bc88 (diff)
downloadCMake-4dd997da541be93b0cfacdd8483eaec8dd2a76d5.zip
CMake-4dd997da541be93b0cfacdd8483eaec8dd2a76d5.tar.gz
CMake-4dd997da541be93b0cfacdd8483eaec8dd2a76d5.tar.bz2
file(DOWNLOAD|UPLOAD): Warn on unexpected arguments
Emit warning message on unparsed argument instead of silently ignoring it. Can't stop with the error message because it may break old code.
Diffstat (limited to 'Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake')
-rw-r--r--Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake b/Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake
new file mode 100644
index 0000000..2e3fbe1
--- /dev/null
+++ b/Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake
@@ -0,0 +1,5 @@
+file(DOWNLOAD
+ "file://${CMAKE_CURRENT_SOURCE_DIR}/DOWNLOAD-unused-argument.txt"
+ "${CMAKE_CURRENT_BINARY_DIR}/unused-argument.txt"
+ JUNK
+ )