diff options
author | Betsy McPhail <betsy.mcphail@kitware.com> | 2017-06-27 19:23:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-07-10 20:25:18 (GMT) |
commit | d08ec4d25a8113388092bf342002f3859f6b8de4 (patch) | |
tree | 9e07c94036183d61f702a38a85531da58feb56db /Source/CTest/cmCTestTestCommand.cxx | |
parent | c705f0af63e2e438d0c6de2400cd90a005576125 (diff) | |
download | CMake-d08ec4d25a8113388092bf342002f3859f6b8de4.zip CMake-d08ec4d25a8113388092bf342002f3859f6b8de4.tar.gz CMake-d08ec4d25a8113388092bf342002f3859f6b8de4.tar.bz2 |
Add CTEST_LABELS_FOR_SUBPROJECTS as a CTest module and script variable
Use this variable to specify a list of labels that will be reported to
CDash as subprojects.
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestCommand.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx index 075b140..3346d86 100644 --- a/Source/CTest/cmCTestTestCommand.cxx +++ b/Source/CTest/cmCTestTestCommand.cxx @@ -124,6 +124,12 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler() } handler->SetTestLoad(testLoad); + if (const char* labelsForSubprojects = + this->Makefile->GetDefinition("CTEST_LABELS_FOR_SUBPROJECTS")) { + this->CTest->SetCTestConfiguration("LabelsForSubprojects", + labelsForSubprojects, this->Quiet); + } + handler->SetQuiet(this->Quiet); return handler; } |