| 101 | } |
| 102 | |
| 103 | static 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 | |
| 115 | void cmFindLibraryCommand::AddArchitecturePath( |
| 116 | std::string const& dir, std::string::size_type start_pos, char const* suffix, |
no test coverage detected
searching dependent graphs…