summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-05-26 18:30:18 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-05-27 11:04:17 (GMT)
commit8451a3f0b545347a812288e66d757692c770097d (patch)
tree4f1c53bc98b605052390ecf61aa2af03ce93da34 /Source/CTest/cmCTestBuildAndTestHandler.cxx
parente06066653124f4fd8d1f9ca1c3e1cd8a4ceac7f9 (diff)
downloadCMake-8451a3f0b545347a812288e66d757692c770097d.zip
CMake-8451a3f0b545347a812288e66d757692c770097d.tar.gz
CMake-8451a3f0b545347a812288e66d757692c770097d.tar.bz2
cmGlobalGenerator: use a stream for output in `Build`
This allows output to show up in output immediately instead of being batched.
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx
index cece98e..5feb953 100644
--- a/Source/CTest/cmCTestBuildAndTestHandler.cxx
+++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx
@@ -246,7 +246,6 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
return 1;
}
}
- std::string output;
const char* config = nullptr;
if (!this->CTest->GetConfigType().empty()) {
config = this->CTest->GetConfigType().c_str();
@@ -259,9 +258,8 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
PackageResolveMode::Disable);
int retVal = cm.GetGlobalGenerator()->Build(
cmake::NO_BUILD_PARALLEL_LEVEL, this->SourceDir, this->BinaryDir,
- this->BuildProject, { tar }, output, this->BuildMakeProgram, config,
+ this->BuildProject, { tar }, out, this->BuildMakeProgram, config,
buildOptions, false, remainingTime);
- out << output;
// if the build failed then return
if (retVal) {
if (outstring) {