summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestConfigureCommand.cxx
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.gitlab.kitware.com>2022-11-04 15:40:30 (GMT)
committerMichael Hirsch <scivision@users.noreply.gitlab.kitware.com>2022-11-04 19:32:15 (GMT)
commit8a16a727f82ecfdad2eac6a12e45f08fff97d765 (patch)
treea646768f4fc74fc5f818c25e73aa9fb0f2001aec /Source/CTest/cmCTestConfigureCommand.cxx
parent182ef53d3d6779db09be196f5be245ffb5d57640 (diff)
downloadCMake-8a16a727f82ecfdad2eac6a12e45f08fff97d765.zip
CMake-8a16a727f82ecfdad2eac6a12e45f08fff97d765.tar.gz
CMake-8a16a727f82ecfdad2eac6a12e45f08fff97d765.tar.bz2
ctest_config: pass -S, -B args for log clarity
Fixes: #24135
Diffstat (limited to 'Source/CTest/cmCTestConfigureCommand.cxx')
-rw-r--r--Source/CTest/cmCTestConfigureCommand.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestConfigureCommand.cxx b/Source/CTest/cmCTestConfigureCommand.cxx
index fd20398..1f3633d 100644
--- a/Source/CTest/cmCTestConfigureCommand.cxx
+++ b/Source/CTest/cmCTestConfigureCommand.cxx
@@ -122,10 +122,15 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
cmakeConfigureCommand += "\"";
}
- cmakeConfigureCommand += " \"";
+ cmakeConfigureCommand += " \"-S";
cmakeConfigureCommand += source_dir;
cmakeConfigureCommand += "\"";
+ cmakeConfigureCommand += " \"-B";
+ cmakeConfigureCommand +=
+ this->CTest->GetCTestConfiguration("BuildDirectory");
+ cmakeConfigureCommand += "\"";
+
this->CTest->SetCTestConfiguration("ConfigureCommand",
cmakeConfigureCommand, this->Quiet);
} else {