| 70 | } |
| 71 | |
| 72 | cmCMakePath 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 | |
| 84 | bool cmCMakePath::IsPrefix(cmCMakePath const& path) const |
| 85 | { |
no outgoing calls
no test coverage detected