| 1170 | } |
| 1171 | |
| 1172 | static void EnsureTrailingSlash(std::string& path) |
| 1173 | { |
| 1174 | if (path.empty()) { |
| 1175 | return; |
| 1176 | } |
| 1177 | std::string::value_type last = path.back(); |
| 1178 | #ifdef _WIN32 |
| 1179 | if (last != '\\') { |
| 1180 | path += '\\'; |
| 1181 | } |
| 1182 | #else |
| 1183 | if (last != '/') { |
| 1184 | path += '/'; |
| 1185 | } |
| 1186 | #endif |
| 1187 | } |
| 1188 | |
| 1189 | std::string const& cmGlobalNinjaGenerator::ConvertToNinjaPath( |
| 1190 | std::string const& path) const |
no test coverage detected
searching dependent graphs…