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

Method Absolute

Source/cmCMakePath.cxx:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72cmCMakePath cmCMakePath::Absolute(cm::filesystem::path const& base) const
73{
74 if (this->Path.is_relative()) {
75 auto path = base;
76 path /= this->Path;
77 // filesystem::path::operator/= use preferred_separator ('\' on Windows)
78 // so converts back to '/'
79 return path.generic_string();
80 }
81 return *this;
82}
83
84bool cmCMakePath::IsPrefix(cmCMakePath const& path) const
85{

Callers 3

EvaluateMethod · 0.45
NormalizeFindResultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected