ENH: add label global property to ctest scripts

This commit is contained in:
Bill Hoffman 2009-02-10 16:08:40 -05:00
parent 4e710a9ebe
commit efad72a9a3
1 changed files with 10 additions and 0 deletions

View File

@ -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";
}
}