diff options
author | Brad King <brad.king@kitware.com> | 2016-09-13 15:40:35 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-13 15:40:35 (GMT) |
commit | 8a56e311ec244a5e9c44457de0cb90643958e0ad (patch) | |
tree | 2371b386006d146c49f4930fda3c5725b1374526 /Source | |
parent | 1ba87fd1749ee3f46d9da1a5eb9798584a280676 (diff) | |
parent | 4dd997da541be93b0cfacdd8483eaec8dd2a76d5 (diff) | |
download | CMake-8a56e311ec244a5e9c44457de0cb90643958e0ad.zip CMake-8a56e311ec244a5e9c44457de0cb90643958e0ad.tar.gz CMake-8a56e311ec244a5e9c44457de0cb90643958e0ad.tar.bz2 |
Merge topic 'file-download-unexpected-arg'
4dd997da file(DOWNLOAD|UPLOAD): Warn on unexpected arguments
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFileCommand.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 835b118..ae7a511 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -2564,6 +2564,11 @@ bool cmFileCommand::HandleDownloadCommand(std::vector<std::string> const& args) return false; } hashMatchMSG = algo + " hash"; + } else { + // Do not return error for compatibility reason. + std::string err = "Unexpected argument: "; + err += *i; + this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, err.c_str()); } ++i; } @@ -2812,6 +2817,11 @@ bool cmFileCommand::HandleUploadCommand(std::vector<std::string> const& args) statusVar = *i; } else if (*i == "SHOW_PROGRESS") { showProgress = true; + } else { + // Do not return error for compatibility reason. + std::string err = "Unexpected argument: "; + err += *i; + this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, err.c_str()); } ++i; |