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

Function HandleSbomMode

Source/cmExportCommand.cxx:410–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410static bool HandleSbomMode(std::vector<std::string> const& args,
411 cmExecutionStatus& status)
412{
413 if (!cmExperimental::HasSupportEnabled(
414 status.GetMakefile(), cmExperimental::Feature::GenerateSbom)) {
415 status.SetError("does not recognize sub-command SBOM");
416 return false;
417 }
418
419 using arg_t = cmSbomArguments;
420 using gen_t = cmExportBuildSbomGenerator;
421 status.GetMakefile().SetExplicitlyGeneratesSbom(true);
422 return HandleSpecialExportMode<arg_t, gen_t>(args, status);
423}
424
425static bool HandleSetupMode(std::vector<std::string> const& args,
426 cmExecutionStatus& status)

Callers

nothing calls this directly

Calls 3

GetMakefileMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…