| 130 | } |
| 131 | |
| 132 | std::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 | |
| 156 | std::string cmFindPathCommand::FindFrameworkHeader() |
| 157 | { |
no test coverage detected