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

Method cmFindCommon

Source/cmFindCommon.cxx:45–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43cmFindCommon::PathLabel cmFindCommon::PathLabel::Guess("GUESS");
44
45cmFindCommon::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
87cmFindCommon::~cmFindCommon() = default;
88

Callers

nothing calls this directly

Calls 4

GetMakefileMethod · 0.45
GetPolicyStatusMethod · 0.45
GetDefinitionMethod · 0.45

Tested by

no test coverage detected