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

Function cmLibDirsLinked

Source/cmFindLibraryCommand.cxx:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static bool cmLibDirsLinked(std::string const& l, std::string const& r)
104{
105 // Compare the real paths of the two directories.
106 // Since our caller only changed the trailing component of each
107 // directory, the real paths can be the same only if at least one of
108 // the trailing components is a symlink. Use this as an optimization
109 // to avoid excessive realpath calls.
110 return (cmSystemTools::FileIsSymlink(l) ||
111 cmSystemTools::FileIsSymlink(r)) &&
112 cmSystemTools::GetRealPath(l) == cmSystemTools::GetRealPath(r);
113}
114
115void cmFindLibraryCommand::AddArchitecturePath(
116 std::string const& dir, std::string::size_type start_pos, char const* suffix,

Callers 1

AddArchitecturePathMethod · 0.85

Calls 1

GetRealPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…