diff options
author | Brad King <brad.king@kitware.com> | 2006-05-13 16:28:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-05-13 16:28:06 (GMT) |
commit | e838bb31e39c821327c91e70ac5c819d63d9672f (patch) | |
tree | f6b0efee893bcda3373404b327fe7cd5ac79f2e7 /Source/cmGlobalGenerator.cxx | |
parent | 3b0c62e5d5742c04cd308d9cb3a649f4562c5dc4 (diff) | |
download | CMake-e838bb31e39c821327c91e70ac5c819d63d9672f.zip CMake-e838bb31e39c821327c91e70ac5c819d63d9672f.tar.gz CMake-e838bb31e39c821327c91e70ac5c819d63d9672f.tar.bz2 |
BUG: Make sure RUN_TESTS target passes the desired configuration to ctest.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 83378a4..d9d0ba4 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()] |