diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2016-09-09 20:19:39 (GMT) |
---|---|---|
committer | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2016-09-09 20:19:39 (GMT) |
commit | 4dd997da541be93b0cfacdd8483eaec8dd2a76d5 (patch) | |
tree | 6e906990cdac22724553fbe4a9cf5e0be8961684 /Tests/RunCMake/file/DOWNLOAD-unused-argument.cmake | |
parent | d5e4cdc0f8c846cdf17f3276d77d352a7644bc88 (diff) | |
download | CMake-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.cmake | 5 |
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 + ) |