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

Method DebugLibraryFailed

Source/cmFindLibraryCommand.cxx:259–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

CheckDirectoryForNameMethod · 0.95

Calls 3

FailedAtMethod · 0.80
cmStrCatFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected