| 154 | } |
| 155 | |
| 156 | void cmFindCommon::SelectDefaultRootPathMode() |
| 157 | { |
| 158 | // Check the policy variable for this find command type. |
| 159 | std::string findRootPathVar = |
| 160 | cmStrCat("CMAKE_FIND_ROOT_PATH_MODE_", this->CMakePathName); |
| 161 | std::string rootPathMode = |
| 162 | this->Makefile->GetSafeDefinition(findRootPathVar); |
| 163 | if (rootPathMode == "NEVER") { |
| 164 | this->FindRootPathMode = RootPathModeNever; |
| 165 | } else if (rootPathMode == "ONLY") { |
| 166 | this->FindRootPathMode = RootPathModeOnly; |
| 167 | } else if (rootPathMode == "BOTH") { |
| 168 | this->FindRootPathMode = RootPathModeBoth; |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | void cmFindCommon::SelectDefaultMacMode() |
| 173 | { |
no test coverage detected