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

Method FillPrefixesSystemRegistry

Source/cmFindPackageCommand.cxx:2621–2639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2619}
2620
2621void cmFindPackageCommand::FillPrefixesSystemRegistry()
2622{
2623 if (this->NoSystemRegistry || this->NoDefaultPath) {
2624 return;
2625 }
2626
2627#if defined(_WIN32) && !defined(__CYGWIN__)
2628 this->LoadPackageRegistryWinSystem();
2629#endif
2630
2631 if (this->DebugModeEnabled()) {
2632 std::string debugBuffer =
2633 "CMake System Package Registry "
2634 "[CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY].\n";
2635 collectPathsForDebug(debugBuffer,
2636 this->LabeledPaths[PathLabel::SystemRegistry]);
2637 this->DebugBuffer = cmStrCat(this->DebugBuffer, debugBuffer);
2638 }
2639}
2640
2641#if defined(_WIN32) && !defined(__CYGWIN__)
2642void cmFindPackageCommand::LoadPackageRegistryWinUser()

Callers 1

ComputePrefixesMethod · 0.95

Calls 4

collectPathsForDebugFunction · 0.85
DebugModeEnabledMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected