浏览代码

ENH: add label global property to ctest scripts

Bill Hoffman 17 年之前
父节点
当前提交
efad72a9a3
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      Source/cmCTest.cxx

+ 10 - 0
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";
+    }
 }