[Cmake-commits] [cmake-commits] king committed cmSetCommand.cxx 1.32 1.33
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Mar 13 13:52:52 EDT 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv6210/Source
Modified Files:
cmSetCommand.cxx
Log Message:
ENH: Simplify error message for invalid set(... CACHE) calls to make it look nicer with new message format.
Index: cmSetCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSetCommand.cxx,v
retrieving revision 1.32
retrieving revision 1.33
diff -C 2 -d -r1.32 -r1.33
*** cmSetCommand.cxx 23 Jan 2008 15:27:59 -0000 1.32
--- cmSetCommand.cxx 13 Mar 2008 17:52:49 -0000 1.33
***************
*** 140,154 ****
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());
return false;
}
--- 140,144 ----
force && !cache)
{
! this->SetError("given invalid arguments for CACHE mode.");
return false;
}
More information about the Cmake-commits
mailing list