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

Method GetProperty

Source/cmInstalledFile.cxx:70–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool cmInstalledFile::GetProperty(std::string const& prop,
71 std::string& value) const
72{
73 auto i = this->Properties.find(prop);
74 if (i == this->Properties.end()) {
75 return false;
76 }
77
78 Property const& property = i->second;
79
80 std::string output;
81 std::string separator;
82
83 for (auto const& ve : property.ValueExpressions) {
84 output += separator;
85 output += ve->GetInput();
86 separator = ";";
87 }
88
89 value = output;
90 return true;
91}
92
93bool cmInstalledFile::GetPropertyAsBool(std::string const& prop) const
94{

Callers 2

GetPropertyAsBoolMethod · 0.95
GetPropertyAsListMethod · 0.95

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected