| 2467 | } |
| 2468 | |
| 2469 | void cmFindPackageCommand::FillPrefixesPackageRedirect() |
| 2470 | { |
| 2471 | cmSearchPath& paths = this->LabeledPaths[PathLabel::PackageRedirect]; |
| 2472 | |
| 2473 | auto const redirectDir = |
| 2474 | this->Makefile->GetDefinition("CMAKE_FIND_PACKAGE_REDIRECTS_DIR"); |
| 2475 | if (redirectDir && !redirectDir->empty()) { |
| 2476 | paths.AddPath(*redirectDir); |
| 2477 | } |
| 2478 | if (this->DebugModeEnabled()) { |
| 2479 | std::string debugBuffer = |
| 2480 | "The internally managed CMAKE_FIND_PACKAGE_REDIRECTS_DIR.\n"; |
| 2481 | collectPathsForDebug(debugBuffer, paths); |
| 2482 | this->DebugBuffer = cmStrCat(this->DebugBuffer, debugBuffer); |
| 2483 | } |
| 2484 | } |
| 2485 | |
| 2486 | void cmFindPackageCommand::FillPrefixesPackageRoot() |
| 2487 | { |
no test coverage detected