| 257 | cmFindCommonDebugState* DebugState; |
| 258 | |
| 259 | void DebugLibraryFailed(std::string const& name, std::string const& path) |
| 260 | { |
| 261 | if (this->DebugState) { |
| 262 | // To improve readability of the debug output, if there is only one |
| 263 | // prefix/suffix, use the plain prefix/suffix instead of the regex. |
| 264 | auto const& prefix = (this->Prefixes.size() == 1) ? this->Prefixes[0] |
| 265 | : this->PrefixRegexStr; |
| 266 | auto const& suffix = (this->Suffixes.size() == 1) ? this->Suffixes[0] |
| 267 | : this->SuffixRegexStr; |
| 268 | |
| 269 | auto regexName = cmStrCat(prefix, name, suffix); |
| 270 | this->DebugState->FailedAt(path, regexName); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | void DebugLibraryFound(std::string const& name, std::string const& path) |
| 275 | { |
no test coverage detected