| 210 | } |
| 211 | |
| 212 | void cmExportFileGenerator::AddImportPrefix(std::string& exportDirs) const |
| 213 | { |
| 214 | std::vector<std::string> entries; |
| 215 | cmGeneratorExpression::Split(exportDirs, entries); |
| 216 | exportDirs.clear(); |
| 217 | char const* sep = ""; |
| 218 | cm::string_view const prefixWithSlash = this->GetImportPrefixWithSlash(); |
| 219 | for (std::string const& e : entries) { |
| 220 | exportDirs += sep; |
| 221 | sep = ";"; |
| 222 | if (!cmSystemTools::FileIsFullPath(e) && |
| 223 | !cmHasPrefix(e, prefixWithSlash)) { |
| 224 | exportDirs += prefixWithSlash; |
| 225 | } |
| 226 | exportDirs += e; |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | namespace { |
| 231 | void getPropertyContents(cmGeneratorTarget const* tgt, std::string const& prop, |
no test coverage detected