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

Method GetIgnoredPaths

Source/cmFindCommon.cxx:340–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void cmFindCommon::GetIgnoredPaths(std::vector<std::string>& ignore)
341{
342 std::array<char const*, 2> const paths = { { "CMAKE_SYSTEM_IGNORE_PATH",
343 "CMAKE_IGNORE_PATH" } };
344
345 // Construct the list of path roots with no trailing slashes.
346 for (char const* pathName : paths) {
347 // Get the list of paths to ignore from the variable.
348 cmList::append(ignore, this->Makefile->GetDefinition(pathName));
349 }
350
351 for (std::string& i : ignore) {
352 cmSystemTools::ConvertToUnixSlashes(i);
353 }
354}
355
356void cmFindCommon::GetIgnoredPaths(std::set<std::string>& ignore)
357{

Callers 2

ComputeFinalPathsMethod · 0.95

Calls 5

appendFunction · 0.85
GetDefinitionMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected