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

Method GetIgnoredPrefixPaths

Source/cmFindCommon.cxx:363–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363void cmFindCommon::GetIgnoredPrefixPaths(std::vector<std::string>& ignore)
364{
365 std::array<char const*, 2> const paths = {
366 { "CMAKE_SYSTEM_IGNORE_PREFIX_PATH", "CMAKE_IGNORE_PREFIX_PATH" }
367 };
368 // Construct the list of path roots with no trailing slashes.
369 for (char const* pathName : paths) {
370 // Get the list of paths to ignore from the variable.
371 cmList::append(ignore, this->Makefile->GetDefinition(pathName));
372 }
373
374 for (std::string& i : ignore) {
375 cmSystemTools::ConvertToUnixSlashes(i);
376 }
377}
378
379void cmFindCommon::GetIgnoredPrefixPaths(std::set<std::string>& ignore)
380{

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