summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-02-10 21:08:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-02-10 21:08:40 (GMT)
commitefad72a9a3d6d23702b6f0858cff4cab45be2f2f (patch)
treeac93f9f3fd651a90fc431b024d46a1344fe632c6 /Source/cmCTest.cxx
parent4e710a9ebe0ba2bb1b61018469bd981b138e584d (diff)
downloadCMake-efad72a9a3d6d23702b6f0858cff4cab45be2f2f.zip
CMake-efad72a9a3d6d23702b6f0858cff4cab45be2f2f.tar.gz
CMake-efad72a9a3d6d23702b6f0858cff4cab45be2f2f.tar.bz2
ENH: add label global property to ctest scripts
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 70dba4d..df7c110 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1283,6 +1283,7 @@ void cmCTest::AddSiteProperties(std::ostream& ostr)
{
return;
}
+ // This code should go when cdash is changed to use labels only
const char* subproject = cm->GetProperty("SubProject", cmProperty::GLOBAL);
if(subproject)
{
@@ -1304,6 +1305,15 @@ void cmCTest::AddSiteProperties(std::ostream& ostr)
}
ostr << "</Subproject>\n";
}
+
+ // This code should stay when cdash only does label based sub-projects
+ const char* label = cm->GetProperty("Label", cmProperty::GLOBAL);
+ if(label)
+ {
+ ostr << "<Labels>\n";
+ ostr << " <Label>" << label << "</Label>\n";
+ ostr << "</Labels>\n";
+ }
}