BUG: Print the right line number to the right pipe

This commit is contained in:
Andy Cedilnik 2006-01-05 12:16:11 -05:00
parent 6ac0063af7
commit af923d13fa

View File

@ -195,7 +195,14 @@ void cmCPackLog::Log(int tag, const char* file, int line, const char* msg, size_
}
if ( useFileAndLine )
{
*m_DefaultOutput << __FILE__ << ":" << __LINE__ << " ";
if ( error || warning )
{
*m_DefaultError << file << ":" << line << " ";
}
else
{
*m_DefaultOutput << file << ":" << line << " ";
}
}
}
if ( error || warning )