ENH: Simplify error message for invalid set(... CACHE) calls to make it look nicer with new message format.

This commit is contained in:
Brad King 2008-03-13 13:52:49 -04:00
parent f7f03347a6
commit 870571b28b
1 changed files with 1 additions and 11 deletions

View File

@ -139,17 +139,7 @@ bool cmSetCommand
args.size() > 1 && args[args.size() - 2] == "CACHE" ||
force && !cache)
{
std::string message;
message += "Syntax error in SET:\n";
message += "See the help for the SET command:\n";
message += "SET (";
for(std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i)
{
message += *i;
}
message += ")\n";
this->SetError(message.c_str());
this->SetError("given invalid arguments for CACHE mode.");
return false;
}