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

Function warn_or_error

Source/cmCMakePkgConfigCommand.cxx:458–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456};
457
458void warn_or_error(std::string const& err, ImportEnv& imEnv)
459{
460 if (imEnv.required) {
461 imEnv.status.SetError(err);
462 cmSystemTools::SetFatalErrorOccurred();
463 } else if (!imEnv.quiet) {
464 imEnv.status.GetMakefile().IssueMessage(MessageType::WARNING, err);
465 }
466 imEnv.err = true;
467}
468
469cm::optional<cmPkgConfigResult> ReadPackage(std::string const& package,
470 ImportEnv& imEnv,

Callers 3

ReadPackageFunction · 0.85
ImportPackageFunction · 0.85
CheckPackageDependenciesFunction · 0.85

Calls 3

SetErrorMethod · 0.45
IssueMessageMethod · 0.45
GetMakefileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…