summaryrefslogtreecommitdiffstats
path: root/Source/cmMessageCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-06-22 19:37:58 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-06-22 19:37:58 (GMT)
commita6e68ac582a2e0f77af2ae38a850a039e7e90e9d (patch)
tree8911f8afe74c0569fc555a70b41378118e3b5be7 /Source/cmMessageCommand.cxx
parent99f4edb4e40501625788c5c1e2db1bb3bbe5c3ba (diff)
downloadCMake-a6e68ac582a2e0f77af2ae38a850a039e7e90e9d.zip
CMake-a6e68ac582a2e0f77af2ae38a850a039e7e90e9d.tar.gz
CMake-a6e68ac582a2e0f77af2ae38a850a039e7e90e9d.tar.bz2
ENH: Use CMake's error reporting mechanism
Diffstat (limited to 'Source/cmMessageCommand.cxx')
-rw-r--r--Source/cmMessageCommand.cxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/Source/cmMessageCommand.cxx b/Source/cmMessageCommand.cxx
index 2ba6fd7..7ab17fb 100644
--- a/Source/cmMessageCommand.cxx
+++ b/Source/cmMessageCommand.cxx
@@ -57,25 +57,26 @@ 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
{
- if (status)
- {
- this->Makefile->DisplayStatus(message.c_str(), -1);
- }
- else
- {
- cmSystemTools::Message(message.c_str());
- }
+ if (status)
+ {
+ this->Makefile->DisplayStatus(message.c_str(), -1);
+ }
+ else
+ {
+ cmSystemTools::Message(message.c_str());
+ }
}
if(fatal_error )
{
cmSystemTools::SetFatalErrorOccured();
}
- return true;
+ return (!send_error && !fatal_error);
}