diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-09 21:07:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-09 21:07:38 (GMT) |
commit | 9442cd33ba871fcb2f682e5166d5488e1785104d (patch) | |
tree | 77d8fb762a030d02e87d400a30e2e7b4b1cfc362 /Source | |
parent | b0bc59f70988d169dd0c00ccecc19e42548fcd9f (diff) | |
download | CMake-9442cd33ba871fcb2f682e5166d5488e1785104d.zip CMake-9442cd33ba871fcb2f682e5166d5488e1785104d.tar.gz CMake-9442cd33ba871fcb2f682e5166d5488e1785104d.tar.bz2 |
ENH: fix it to work with stl debug mode on mac
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index e0d7c84..61bd6fa 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -833,8 +833,9 @@ void cmCTestBuildHandler::ProcessBuffer(const char* data, int length, { // This is not an error or warning. // So, figure out if this is a post-context line - if ( this->LastErrorOrWarning != this->ErrorsAndWarnings.end() && - this->PostContextCount < this->MaxPostContext ) + if ( this->ErrorsAndWarnings.size() && + this->LastErrorOrWarning != this->ErrorsAndWarnings.end() && + this->PostContextCount < this->MaxPostContext ) { this->PostContextCount ++; this->LastErrorOrWarning->PostContext += line; |