diff options
author | Carsten Rudolph <18394207+crud89@users.noreply.github.com> | 2022-01-21 16:43:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-22 11:35:38 (GMT) |
commit | 193b8fca52b5665387dbc7f3199981d9e6cd4b79 (patch) | |
tree | e3a5d14692f37645b9b7a03fc240dd0f25bace48 /Source/CTest | |
parent | 6a1010349355354e27015a004f5620b77993b91c (diff) | |
download | CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.zip CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.tar.gz CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.tar.bz2 |
cmBuildOptions: Split build arguments into separate object.
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestBuildAndTestHandler.cxx | 5 |
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) { |