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

Method ComputePrefixes

Source/cmFindPackageCommand.cxx:2432–2467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2430}
2431
2432void cmFindPackageCommand::ComputePrefixes()
2433{
2434 this->FillPrefixesPackageRedirect();
2435
2436 if (!this->NoDefaultPath) {
2437 if (!this->NoPackageRootPath) {
2438 this->FillPrefixesPackageRoot();
2439 }
2440 if (!this->NoCMakePath) {
2441 this->FillPrefixesCMakeVariable();
2442 }
2443 if (!this->NoCMakeEnvironmentPath) {
2444 this->FillPrefixesCMakeEnvironment();
2445 }
2446 }
2447
2448 this->FillPrefixesUserHints();
2449
2450 if (!this->NoDefaultPath) {
2451 if (!this->NoSystemEnvironmentPath) {
2452 this->FillPrefixesSystemEnvironment();
2453 }
2454 if (!this->NoUserRegistry) {
2455 this->FillPrefixesUserRegistry();
2456 }
2457 if (!this->NoCMakeSystemPath) {
2458 this->FillPrefixesCMakeSystemVariable();
2459 }
2460 if (!this->NoSystemRegistry) {
2461 this->FillPrefixesSystemRegistry();
2462 }
2463 }
2464 this->FillPrefixesUserGuess();
2465
2466 this->ComputeFinalPaths(IgnorePaths::No, &this->DebugBuffer);
2467}
2468
2469void cmFindPackageCommand::FillPrefixesPackageRedirect()
2470{

Callers 1

FindConfigMethod · 0.95

Tested by

no test coverage detected