diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 3c57cf565..21e5782b6 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -453,7 +453,11 @@ void CMakeSetupDialog::showProgress(const QString& /*msg*/, float percent)
void CMakeSetupDialog::error(const QString& message)
{
- this->Output->append(QString("%1").arg(message));
+ QStringList messages = message.split('\n');
+ foreach(QString m, messages)
+ {
+ this->Output->append(QString("%1").arg(m));
+ }
}
void CMakeSetupDialog::setEnabledState(bool enabled)