| 361 | } |
| 362 | |
| 363 | void cmFindCommon::GetIgnoredPrefixPaths(std::vector<std::string>& ignore) |
| 364 | { |
| 365 | std::array<char const*, 2> const paths = { |
| 366 | { "CMAKE_SYSTEM_IGNORE_PREFIX_PATH", "CMAKE_IGNORE_PREFIX_PATH" } |
| 367 | }; |
| 368 | // Construct the list of path roots with no trailing slashes. |
| 369 | for (char const* pathName : paths) { |
| 370 | // Get the list of paths to ignore from the variable. |
| 371 | cmList::append(ignore, this->Makefile->GetDefinition(pathName)); |
| 372 | } |
| 373 | |
| 374 | for (std::string& i : ignore) { |
| 375 | cmSystemTools::ConvertToUnixSlashes(i); |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | void cmFindCommon::GetIgnoredPrefixPaths(std::set<std::string>& ignore) |
| 380 | { |
no test coverage detected