diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-05 17:16:11 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-05 17:16:11 (GMT) |
commit | af923d13fa442205e91b69950b17cdd976fe9967 (patch) | |
tree | d86b1560af845f3ee0a84947c0f374cc956deea3 /Source/CPack/cmCPackLog.cxx | |
parent | 6ac0063af759fbd51a4065f896e63d3e6b5a2d97 (diff) | |
download | CMake-af923d13fa442205e91b69950b17cdd976fe9967.zip CMake-af923d13fa442205e91b69950b17cdd976fe9967.tar.gz CMake-af923d13fa442205e91b69950b17cdd976fe9967.tar.bz2 |
BUG: Print the right line number to the right pipe
Diffstat (limited to 'Source/CPack/cmCPackLog.cxx')
-rw-r--r-- | Source/CPack/cmCPackLog.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackLog.cxx b/Source/CPack/cmCPackLog.cxx index 331630b..4b7d285 100644 --- a/Source/CPack/cmCPackLog.cxx +++ b/Source/CPack/cmCPackLog.cxx @@ -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 ) |