| 125 | } |
| 126 | |
| 127 | void 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 | |
| 156 | void cmFindCommon::SelectDefaultRootPathMode() |
| 157 | { |
no test coverage detected