ENH: clean up output

This commit is contained in:
Bill Hoffman 2004-01-09 12:35:33 -05:00
parent c1f83b0515
commit 972e09029d
1 changed files with 2 additions and 1 deletions

View File

@ -4029,14 +4029,15 @@ int cmCTest::RunCMakeAndTest(std::string* outstring)
}
if ( retVal )
{
cmSystemTools::Error("Building of project failed\n");
if(outstring)
{
*outstring += "Building of project failed\n";
*outstring += output;
*outstring += "\n";
}
else
{
std::cerr << "Building of project failed\n";
std::cout << output << "\n";
}
// return to the original directory