diff options
author | Brad King <brad.king@kitware.com> | 2008-03-13 17:52:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-13 17:52:49 (GMT) |
commit | 870571b28b55a929bd423348910951fee182c2a5 (patch) | |
tree | bfb95061a89345e20cdf46f165f26f4f0178af6d /Source/cmSetCommand.cxx | |
parent | f7f03347a64c629149803594b92c2b4b40e783fd (diff) | |
download | CMake-870571b28b55a929bd423348910951fee182c2a5.zip CMake-870571b28b55a929bd423348910951fee182c2a5.tar.gz CMake-870571b28b55a929bd423348910951fee182c2a5.tar.bz2 |
ENH: Simplify error message for invalid set(... CACHE) calls to make it look nicer with new message format.
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r-- | Source/cmSetCommand.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx index 512ae95..5939990 100644 --- a/Source/cmSetCommand.cxx +++ b/Source/cmSetCommand.cxx @@ -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; } |