ENH: Use CMake's error reporting mechanism
This commit is contained in:
parent
99f4edb4e4
commit
a6e68ac582
|
@ -57,9 +57,10 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args)
|
|||
message += *i;
|
||||
}
|
||||
|
||||
if (send_error)
|
||||
if (send_error || fatal_error)
|
||||
{
|
||||
cmSystemTools::Error(message.c_str());
|
||||
//cmSystemTools::Error(message.c_str());
|
||||
this->SetError(message.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -76,6 +77,6 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args)
|
|||
{
|
||||
cmSystemTools::SetFatalErrorOccured();
|
||||
}
|
||||
return true;
|
||||
return (!send_error && !fatal_error);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue