BUG: Make sure RUN_TESTS target passes the desired configuration to ctest.
This commit is contained in:
parent
3b0c62e5d5
commit
e838bb31e3
|
@ -1363,6 +1363,11 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
|
|||
singleLine.erase(singleLine.begin(), singleLine.end());
|
||||
depends.erase(depends.begin(), depends.end());
|
||||
singleLine.push_back(this->GetCMakeInstance()->GetCTestCommand());
|
||||
if(cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.')
|
||||
{
|
||||
singleLine.push_back("-C");
|
||||
singleLine.push_back(mf->GetDefinition("CMAKE_CFG_INTDIR"));
|
||||
}
|
||||
singleLine.push_back("--force-new-ctest-process");
|
||||
cpackCommandLines.push_back(singleLine);
|
||||
(*targets)[this->GetTestTargetName()]
|
||||
|
|
Loading…
Reference in New Issue