| 68 | } |
| 69 | |
| 70 | bool 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 | |
| 93 | bool cmInstalledFile::GetPropertyAsBool(std::string const& prop) const |
| 94 | { |
no test coverage detected