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

Method InitializeSearchPathGroups

Source/cmFindCommon.cxx:127–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void cmFindCommon::InitializeSearchPathGroups()
128{
129 std::vector<PathLabel>* labels;
130
131 // Define the various different groups of path types
132
133 // All search paths
134 labels = &this->PathGroupLabelMap[PathGroup::All];
135 labels->push_back(PathLabel::PackageRoot);
136 labels->push_back(PathLabel::CMake);
137 labels->push_back(PathLabel::CMakeEnvironment);
138 labels->push_back(PathLabel::Hints);
139 labels->push_back(PathLabel::SystemEnvironment);
140 labels->push_back(PathLabel::CMakeSystem);
141 labels->push_back(PathLabel::Guess);
142
143 // Define the search group order
144 this->PathGroupOrder.push_back(PathGroup::All);
145
146 // Create the individual labeled search paths
147 this->LabeledPaths.emplace(PathLabel::PackageRoot, cmSearchPath(this));
148 this->LabeledPaths.emplace(PathLabel::CMake, cmSearchPath(this));
149 this->LabeledPaths.emplace(PathLabel::CMakeEnvironment, cmSearchPath(this));
150 this->LabeledPaths.emplace(PathLabel::Hints, cmSearchPath(this));
151 this->LabeledPaths.emplace(PathLabel::SystemEnvironment, cmSearchPath(this));
152 this->LabeledPaths.emplace(PathLabel::CMakeSystem, cmSearchPath(this));
153 this->LabeledPaths.emplace(PathLabel::Guess, cmSearchPath(this));
154}
155
156void cmFindCommon::SelectDefaultRootPathMode()
157{

Callers 1

cmFindCommonMethod · 0.95

Calls 3

push_backMethod · 0.80
emplaceMethod · 0.80
cmSearchPathClass · 0.70

Tested by

no test coverage detected