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

Method FindNormalHeader

Source/cmFindPathCommand.cxx:132–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132std::string cmFindPathCommand::FindNormalHeader()
133{
134 std::string tryPath;
135 for (std::string const& n : this->Names) {
136 for (std::string const& sp : this->SearchPaths) {
137 tryPath = cmStrCat(sp, n);
138 if (cmSystemTools::FileExists(tryPath) &&
139 this->Validate(this->IncludeFileInPath ? tryPath : sp)) {
140 if (this->DebugState) {
141 this->DebugState->FoundAt(tryPath);
142 }
143 if (this->IncludeFileInPath) {
144 return tryPath;
145 }
146 return sp;
147 }
148 if (this->DebugState) {
149 this->DebugState->FailedAt(tryPath);
150 }
151 }
152 }
153 return "";
154}
155
156std::string cmFindPathCommand::FindFrameworkHeader()
157{

Callers 1

FindHeaderMethod · 0.95

Calls 5

FoundAtMethod · 0.80
FailedAtMethod · 0.80
cmStrCatFunction · 0.70
FileExistsFunction · 0.50
ValidateMethod · 0.45

Tested by

no test coverage detected