cmFindProgramCommand
| 191 | |
| 192 | // cmFindProgramCommand |
| 193 | bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn) |
| 194 | { |
| 195 | |
| 196 | this->CMakePathName = "PROGRAM"; |
| 197 | |
| 198 | // call cmFindBase::ParseArguments |
| 199 | if (!this->ParseArguments(argsIn)) { |
| 200 | return false; |
| 201 | } |
| 202 | |
| 203 | this->FullDebugMode = this->ComputeIfDebugModeWanted(this->VariableName); |
| 204 | if (this->FullDebugMode || !this->ComputeIfImplicitDebugModeSuppressed()) { |
| 205 | this->DebugState = cm::make_unique<cmFindBaseDebugState>(this); |
| 206 | } |
| 207 | |
| 208 | if (this->IsFound()) { |
| 209 | this->NormalizeFindResult(); |
| 210 | return true; |
| 211 | } |
| 212 | |
| 213 | std::string const result = this->FindProgram(); |
| 214 | this->StoreFindResult(result); |
| 215 | return true; |
| 216 | } |
| 217 | |
| 218 | std::string cmFindProgramCommand::FindProgram() |
| 219 | { |
no test coverage detected