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

Method AddImportPrefix

Source/cmExportFileGenerator.cxx:212–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void 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
230namespace {
231void getPropertyContents(cmGeneratorTarget const* tgt, std::string const& prop,

Calls 3

cmHasPrefixFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected