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

Method WriteVCProjFooter

Source/cmLocalVisualStudio7Generator.cxx:2090–2113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2088}
2089
2090void cmLocalVisualStudio7Generator::WriteVCProjFooter(
2091 std::ostream& fout, cmGeneratorTarget* target)
2092{
2093 fout << "\t<Globals>\n";
2094
2095 for (std::string const& key : target->GetPropertyKeys()) {
2096 if (cmHasLiteralPrefix(key, "VS_GLOBAL_")) {
2097 std::string name = key.substr(10);
2098 if (!name.empty()) {
2099 fout << "\t\t<Global\n"
2100 "\t\t\tName=\""
2101 << name
2102 << "\"\n"
2103 "\t\t\tValue=\""
2104 << target->GetProperty(key)
2105 << "\"\n"
2106 "\t\t/>\n";
2107 }
2108 }
2109 }
2110
2111 fout << "\t</Globals>\n"
2112 "</VisualStudioProject>\n";
2113}
2114
2115std::string cmLocalVisualStudio7Generator::EscapeForXML(std::string const& s)
2116{

Callers 1

WriteVCProjFileMethod · 0.95

Calls 5

cmHasLiteralPrefixFunction · 0.85
GetPropertyKeysMethod · 0.45
substrMethod · 0.45
emptyMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected