| 2647 | } |
| 2648 | |
| 2649 | void 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 | |
| 2664 | void cmFindPackageCommand::LoadPackageRegistryWin(bool const user, |
| 2665 | unsigned int const view, |
no test coverage detected