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

Method InitialPass

Source/cmFindProgramCommand.cxx:193–216  ·  view source on GitHub ↗

cmFindProgramCommand

Source from the content-addressed store, hash-verified

191
192// cmFindProgramCommand
193bool 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
218std::string cmFindProgramCommand::FindProgram()
219{

Callers 1

cmFindProgramFunction · 0.45

Calls 7

FindProgramMethod · 0.95
NormalizeFindResultMethod · 0.80
StoreFindResultMethod · 0.80
ParseArgumentsMethod · 0.45
IsFoundMethod · 0.45

Tested by

no test coverage detected