summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorCarsten Rudolph <18394207+crud89@users.noreply.github.com>2022-01-21 16:43:17 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-22 11:35:38 (GMT)
commit193b8fca52b5665387dbc7f3199981d9e6cd4b79 (patch)
treee3a5d14692f37645b9b7a03fc240dd0f25bace48 /Source/CTest/cmCTestBuildAndTestHandler.cxx
parent6a1010349355354e27015a004f5620b77993b91c (diff)
downloadCMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.zip
CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.tar.gz
CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.tar.bz2
cmBuildOptions: Split build arguments into separate object.
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx
index adfc8ef..9b5e319 100644
--- a/Source/CTest/cmCTestBuildAndTestHandler.cxx
+++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx
@@ -9,6 +9,7 @@
#include "cmsys/Process.h"
+#include "cmBuildOptions.h"
#include "cmCTest.h"
#include "cmCTestTestHandler.h"
#include "cmGlobalGenerator.h"
@@ -263,10 +264,12 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
if (!config) {
config = "Debug";
}
+
+ cmBuildOptions buildOptions(!this->BuildNoClean, false);
int retVal = cm.GetGlobalGenerator()->Build(
cmake::NO_BUILD_PARALLEL_LEVEL, this->SourceDir, this->BinaryDir,
this->BuildProject, { tar }, output, this->BuildMakeProgram, config,
- !this->BuildNoClean, false, false, remainingTime);
+ buildOptions, false, remainingTime);
out << output;
// if the build failed then return
if (retVal) {