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

Method ResolveExecutablePathDependency

Source/cmBinUtilsMacOSMachOLinker.cxx:184–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool 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
207bool cmBinUtilsMacOSMachOLinker::ResolveLoaderPathDependency(
208 std::string const& name, std::string const& loaderPath, std::string& path,

Callers 2

ResolveDependencyMethod · 0.95

Calls 2

emptyMethod · 0.45
NormalizePathMethod · 0.45

Tested by

no test coverage detected