| 182 | } |
| 183 | |
| 184 | bool cmBinUtilsMacOSMachOLinker::ResolveExecutablePathDependency( |
| 185 | std::string const& name, std::string const& executablePath, |
| 186 | std::string& path, bool& resolved) |
| 187 | { |
| 188 | if (executablePath.empty()) { |
| 189 | resolved = false; |
| 190 | return true; |
| 191 | } |
| 192 | |
| 193 | // 16 is == "@executable_path".length() |
| 194 | path = name; |
| 195 | path.replace(0, 16, executablePath); |
| 196 | |
| 197 | if (!cmSystemTools::PathExists(path)) { |
| 198 | resolved = false; |
| 199 | return true; |
| 200 | } |
| 201 | |
| 202 | this->NormalizePath(path); |
| 203 | resolved = true; |
| 204 | return true; |
| 205 | } |
| 206 | |
| 207 | bool cmBinUtilsMacOSMachOLinker::ResolveLoaderPathDependency( |
| 208 | std::string const& name, std::string const& loaderPath, std::string& path, |
no test coverage detected