MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteSlnxPropertyGroup

Function WriteSlnxPropertyGroup

Source/cmVSSolution.cxx:387–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385};
386
387void WriteSlnxPropertyGroup(cmXMLElement& xmlParent,
388 Solution::PropertyGroup const& pg)
389{
390 cmXMLElement xmlProperties(xmlParent, "Properties");
391 xmlProperties.Attribute("Name", pg.Name);
392 if (pg.Scope == Solution::PropertyGroup::Load::Post) {
393 xmlProperties.Attribute("Scope", "PostLoad");
394 }
395 for (auto const& i : pg.Map) {
396 cmXMLElement(xmlProperties, "Properties")
397 .Attribute("Name", i.first)
398 .Attribute("Value", i.second);
399 }
400}
401}
402
403void WriteSlnx(std::ostream& slnx, Solution const& solution)

Callers 1

WriteSlnxFunction · 0.85

Calls 2

AttributeMethod · 0.80
cmXMLElementClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…