| 288 | } |
| 289 | |
| 290 | std::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 | |
| 310 | std::string cmFindProgramCommand::GetBundleExecutable( |
| 311 | std::string const& bundlePath) |
no test coverage detected