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

Method SelectDefaultRootPathMode

Source/cmFindCommon.cxx:156–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void 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
172void cmFindCommon::SelectDefaultMacMode()
173{

Callers 2

InitialPassMethod · 0.80
ParseArgumentsMethod · 0.80

Calls 1

cmStrCatFunction · 0.70

Tested by

no test coverage detected