| 43 | cmFindCommon::PathLabel cmFindCommon::PathLabel::Guess("GUESS"); |
| 44 | |
| 45 | cmFindCommon::cmFindCommon(cmExecutionStatus& status) |
| 46 | : Makefile(&status.GetMakefile()) |
| 47 | , Status(status) |
| 48 | { |
| 49 | this->FindRootPathMode = RootPathModeBoth; |
| 50 | this->FullDebugMode = false; |
| 51 | this->NoDefaultPath = false; |
| 52 | this->NoPackageRootPath = false; |
| 53 | this->NoCMakePath = false; |
| 54 | this->NoCMakeEnvironmentPath = false; |
| 55 | this->NoSystemEnvironmentPath = false; |
| 56 | this->NoCMakeSystemPath = false; |
| 57 | this->NoCMakeInstallPath = false; |
| 58 | |
| 59 | // OS X Bundle and Framework search policy. The default is to |
| 60 | // search frameworks first on apple. |
| 61 | #if defined(__APPLE__) |
| 62 | this->SearchFrameworkFirst = true; |
| 63 | this->SearchAppBundleFirst = true; |
| 64 | #else |
| 65 | this->SearchFrameworkFirst = false; |
| 66 | this->SearchAppBundleFirst = false; |
| 67 | #endif |
| 68 | this->SearchFrameworkOnly = false; |
| 69 | this->SearchFrameworkLast = false; |
| 70 | this->SearchAppBundleOnly = false; |
| 71 | this->SearchAppBundleLast = false; |
| 72 | |
| 73 | this->InitializeSearchPathGroups(); |
| 74 | |
| 75 | // Windows Registry views |
| 76 | // When policy CMP0134 is not NEW, rely on previous behavior: |
| 77 | if (this->Makefile->GetPolicyStatus(cmPolicies::CMP0134) != |
| 78 | cmPolicies::NEW) { |
| 79 | if (this->Makefile->GetDefinition("CMAKE_SIZEOF_VOID_P") == "8") { |
| 80 | this->RegistryView = cmWindowsRegistry::View::Reg64; |
| 81 | } else { |
| 82 | this->RegistryView = cmWindowsRegistry::View::Reg32; |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | cmFindCommon::~cmFindCommon() = default; |
| 88 |
nothing calls this directly
no test coverage detected