| 220 | } |
| 221 | |
| 222 | void cmSearchPath::AddPathInternal(std::string const& path, |
| 223 | std::string const& prefix) |
| 224 | { |
| 225 | assert(this->FC); |
| 226 | |
| 227 | if (path.empty()) { |
| 228 | return; |
| 229 | } |
| 230 | |
| 231 | // Insert the path if has not already been emitted. |
| 232 | PathWithPrefix pathWithPrefix{ path, prefix }; |
| 233 | if (this->FC->SearchPathsEmitted.insert(pathWithPrefix).second) { |
| 234 | this->Paths.emplace_back(std::move(pathWithPrefix)); |
| 235 | } |
| 236 | } |
no test coverage detected