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

Method InitialPass

Source/cmFindPathCommand.cxx:33–54  ·  view source on GitHub ↗

cmFindPathCommand

Source from the content-addressed store, hash-verified

31
32// cmFindPathCommand
33bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn)
34{
35 this->CMakePathName = "INCLUDE";
36
37 if (!this->ParseArguments(argsIn)) {
38 return false;
39 }
40
41 this->FullDebugMode = this->ComputeIfDebugModeWanted(this->VariableName);
42 if (this->FullDebugMode || !this->ComputeIfImplicitDebugModeSuppressed()) {
43 this->DebugState = cm::make_unique<cmFindBaseDebugState>(this);
44 }
45
46 if (this->IsFound()) {
47 this->NormalizeFindResult();
48 return true;
49 }
50
51 std::string result = this->FindHeader();
52 this->StoreFindResult(result);
53 return true;
54}
55
56std::string cmFindPathCommand::FindHeader()
57{

Callers 2

cmFindFileFunction · 0.45
cmFindPathFunction · 0.45

Calls 7

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

Tested by

no test coverage detected