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

Method FindAppBundle

Source/cmFindProgramCommand.cxx:290–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290std::string cmFindProgramCommand::FindAppBundle()
291{
292 for (std::string const& name : this->Names) {
293
294 std::string appName = name + std::string(".app");
295 std::string appPath =
296 cmSystemTools::FindDirectory(appName, this->SearchPaths, true);
297
298 if (!appPath.empty()) {
299 std::string executable = this->GetBundleExecutable(appPath);
300 if (!executable.empty()) {
301 return cmSystemTools::CollapseFullPath(executable);
302 }
303 }
304 }
305
306 // Couldn't find app bundle
307 return "";
308}
309
310std::string cmFindProgramCommand::GetBundleExecutable(
311 std::string const& bundlePath)

Callers 1

FindProgramMethod · 0.95

Calls 2

GetBundleExecutableMethod · 0.95
emptyMethod · 0.45

Tested by

no test coverage detected