| 338 | } |
| 339 | |
| 340 | void cmFindCommon::GetIgnoredPaths(std::vector<std::string>& ignore) |
| 341 | { |
| 342 | std::array<char const*, 2> const paths = { { "CMAKE_SYSTEM_IGNORE_PATH", |
| 343 | "CMAKE_IGNORE_PATH" } }; |
| 344 | |
| 345 | // Construct the list of path roots with no trailing slashes. |
| 346 | for (char const* pathName : paths) { |
| 347 | // Get the list of paths to ignore from the variable. |
| 348 | cmList::append(ignore, this->Makefile->GetDefinition(pathName)); |
| 349 | } |
| 350 | |
| 351 | for (std::string& i : ignore) { |
| 352 | cmSystemTools::ConvertToUnixSlashes(i); |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | void cmFindCommon::GetIgnoredPaths(std::set<std::string>& ignore) |
| 357 | { |
no test coverage detected