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

Method ResolvePath

Source/cmPackageInfoReader.cxx:621–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621std::string cmPackageInfoReader::ResolvePath(std::string path) const
622{
623 cmSystemTools::ConvertToUnixSlashes(path);
624 if (cmHasPrefix(path, "@prefix@"_s)) {
625 return cmStrCat(this->Prefix, path.substr(8));
626 }
627 if (!cmSystemTools::FileIsFullPath(path)) {
628 return cmStrCat(cmSystemTools::GetFilenamePath(this->Path), '/', path);
629 }
630 return path;
631}
632
633void cmPackageInfoReader::AddTargetConfiguration(
634 cmTarget* target, cm::string_view configuration) const

Callers 3

SetImportPropertyMethod · 0.95
SetTargetPropertiesMethod · 0.95

Calls 3

cmHasPrefixFunction · 0.85
cmStrCatFunction · 0.70
substrMethod · 0.45

Tested by

no test coverage detected