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

Method CheckArgs

Source/cmCMakePkgConfigCommand.cxx:370–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 cm::optional<ArgumentParser::MaybeEmpty<std::vector<std::string>>> PcLibdir;
369
370 bool CheckArgs(cmExecutionStatus& status) const
371 {
372
373 if (!Package) {
374 status.SetError("A package name or absolute path must be specified");
375 return false;
376 }
377
378 if (!StrictnessError.empty()) {
379 status.SetError(StrictnessError);
380 return false;
381 }
382
383 if (!EnvModeError.empty()) {
384 status.SetError(EnvModeError);
385 return false;
386 }
387
388 return true;
389 }
390};
391
392#define BIND_COMMON(argtype) \

Callers 1

HandleCommonFunction · 0.80

Calls 2

SetErrorMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected