浏览代码

ENH: clean up output

Bill Hoffman 22 年之前
父节点
当前提交
972e09029d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmCTest.cxx

+ 2 - 1
Source/cmCTest.cxx

@@ -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