diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-09-02 16:35:42 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-09-02 16:35:42 (GMT) |
commit | 7e20db0224571361d6d5f62fc58b12452bec826b (patch) | |
tree | b7f0fc10d4e82c0068a7ddffc087fb028fcd4168 /Source/CTest/cmCTestTestHandler.cxx | |
parent | 69fd641adb32c878ded4cadee60d90596b358d1b (diff) | |
download | CMake-7e20db0224571361d6d5f62fc58b12452bec826b.zip CMake-7e20db0224571361d6d5f62fc58b12452bec826b.tar.gz CMake-7e20db0224571361d6d5f62fc58b12452bec826b.tar.bz2 |
ENH: Added PARALLEL_LEVEL option to ctest_test() command.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 1af1cf9..c35c8d4 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -495,7 +495,11 @@ int cmCTestTestHandler::ProcessHandler() { // Update internal data structure from generic one this->SetTestsToRunInformation(this->GetOption("TestsToRunInformation")); - this->SetUseUnion(cmSystemTools::IsOn(this->GetOption("UseUnion"))); + this->SetUseUnion(cmSystemTools::IsOn(this->GetOption("UseUnion"))); + if(this->GetOption("ParallelLevel")) + { + this->CTest->SetParallelLevel(atoi(this->GetOption("ParallelLevel"))); + } const char* val; val = this->GetOption("LabelRegularExpression"); if ( val ) |