|
|
@@ -2458,6 +2458,13 @@ void cmGlobalGenerator::AddGlobalTarget_Test(
|
|
|
cmCustomCommandLine singleLine;
|
|
|
singleLine.push_back(cmSystemTools::GetCTestCommand());
|
|
|
singleLine.push_back("--force-new-ctest-process");
|
|
|
+ if (auto testArgs = mf->GetDefinition("CMAKE_CTEST_ARGUMENTS")) {
|
|
|
+ std::vector<std::string> args;
|
|
|
+ cmExpandList(testArgs, args);
|
|
|
+ for (auto const& arg : args) {
|
|
|
+ singleLine.push_back(arg);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.') {
|
|
|
singleLine.push_back("-C");
|
|
|
singleLine.push_back(cmakeCfgIntDir);
|