| 264 | } |
| 265 | |
| 266 | std::string cmFindProgramCommand::FindNormalProgramDirsPerName() |
| 267 | { |
| 268 | // Search the entire path for each name. |
| 269 | cmFindProgramHelper helper(this->Makefile, this, this->DebugState.get()); |
| 270 | for (std::string const& n : this->Names) { |
| 271 | // Switch to searching for this name. |
| 272 | helper.SetName(n); |
| 273 | |
| 274 | // Check for the names themselves if they contain a directory separator. |
| 275 | if (helper.CheckCompoundNames()) { |
| 276 | return helper.BestPath; |
| 277 | } |
| 278 | |
| 279 | // Search every directory. |
| 280 | for (std::string const& sp : this->SearchPaths) { |
| 281 | if (helper.CheckDirectory(sp)) { |
| 282 | return helper.BestPath; |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | // Couldn't find the program. |
| 287 | return ""; |
| 288 | } |
| 289 | |
| 290 | std::string cmFindProgramCommand::FindAppBundle() |
| 291 | { |
no test coverage detected