MCPcopy Create free account
hub / github.com/Kitware/CMake / FillPrefixesPackageRedirect

Method FillPrefixesPackageRedirect

Source/cmFindPackageCommand.cxx:2469–2484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2467}
2468
2469void 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
2486void cmFindPackageCommand::FillPrefixesPackageRoot()
2487{

Callers 1

ComputePrefixesMethod · 0.95

Calls 6

collectPathsForDebugFunction · 0.85
DebugModeEnabledMethod · 0.80
cmStrCatFunction · 0.70
GetDefinitionMethod · 0.45
emptyMethod · 0.45
AddPathMethod · 0.45

Tested by

no test coverage detected