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

Method LoadPackageRegistryWinSystem

Source/cmFindPackageCommand.cxx:2649–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2647}
2648
2649void cmFindPackageCommand::LoadPackageRegistryWinSystem()
2650{
2651 cmSearchPath& paths = this->LabeledPaths[PathLabel::SystemRegistry];
2652
2653 // HKEY_LOCAL_MACHINE\\SOFTWARE has separate 32-bit and 64-bit views.
2654 // Prefer the target platform view first.
2655 if (this->Makefile->PlatformIs64Bit()) {
2656 this->LoadPackageRegistryWin(false, KEY_WOW64_64KEY, paths);
2657 this->LoadPackageRegistryWin(false, KEY_WOW64_32KEY, paths);
2658 } else {
2659 this->LoadPackageRegistryWin(false, KEY_WOW64_32KEY, paths);
2660 this->LoadPackageRegistryWin(false, KEY_WOW64_64KEY, paths);
2661 }
2662}
2663
2664void cmFindPackageCommand::LoadPackageRegistryWin(bool const user,
2665 unsigned int const view,

Callers 1

Calls 2

PlatformIs64BitMethod · 0.80

Tested by

no test coverage detected