| 2072 | } |
| 2073 | |
| 2074 | std::string cmSystemTools::ToNormalizedPathOnDisk(std::string p) |
| 2075 | { |
| 2076 | p = ResolveTildePath(p); |
| 2077 | using namespace cm::PathResolver; |
| 2078 | #ifdef _WIN32 |
| 2079 | // IWYU pragma: no_forward_declare cm::PathResolver::Policies::CasePath |
| 2080 | static Resolver<Policies::CasePath> const resolver(RealOS); |
| 2081 | #else |
| 2082 | // IWYU pragma: no_forward_declare cm::PathResolver::Policies::LogicalPath |
| 2083 | static Resolver<Policies::LogicalPath> const resolver(RealOS); |
| 2084 | #endif |
| 2085 | resolver.Resolve(std::move(p), p); |
| 2086 | return p; |
| 2087 | } |
| 2088 | |
| 2089 | #ifndef CMAKE_BOOTSTRAP |
| 2090 | bool cmSystemTools::UnsetEnv(char const* value) |