From e838bb31e39c821327c91e70ac5c819d63d9672f Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 13 May 2006 12:28:06 -0400 Subject: [PATCH] BUG: Make sure RUN_TESTS target passes the desired configuration to ctest. --- Source/cmGlobalGenerator.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 83378a409..d9d0ba482 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -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()]