Coverage Report

Created: 2026-06-15 07:03

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmInstallSbomBuilder.cxx
Line
Count
Source
1
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2
   file LICENSE.rst or https://cmake.org/licensing for details. */
3
#include "cmInstallSbomBuilder.h"
4
5
#include <utility>
6
7
#include "cmGeneratorExpression.h"
8
#include "cmGeneratorTarget.h"
9
#include "cmGlobalGenerator.h"
10
#include "cmLocalGenerator.h"
11
#include "cmSbomArguments.h"
12
13
cmInstallSbomBuilder::cmInstallSbomBuilder(
14
  cmSbomArguments args, std::vector<cmExportSet*> exportSets,
15
  cmLocalGenerator* lg)
16
0
  : cmSbomBuilder(std::move(args), std::move(exportSets), lg)
17
0
{
18
0
}
19
20
bool cmInstallSbomBuilder::Generate(std::ostream& os,
21
                                    std::string const& config)
22
0
{
23
0
  if (!this->LocalGenerator) {
24
0
    return false;
25
0
  }
26
0
  return this->GenerateForTargets(os, config,
27
0
                                  cmGeneratorExpression::InstallInterface);
28
0
}
29
30
cmExportFileGenerator::ExportInfo cmInstallSbomBuilder::FindExportInfoFor(
31
  cmGeneratorTarget const* target) const
32
0
{
33
0
  return target->GetLocalGenerator()
34
0
    ->GetGlobalGenerator()
35
0
    ->FindInstallExportInfo(target);
36
0
}
37
38
cmSbomBuilder::SbomInfo cmInstallSbomBuilder::FindSbomInfoFor(
39
  cmGeneratorTarget const* target) const
40
0
{
41
0
  return target->GetLocalGenerator()
42
0
    ->GetGlobalGenerator()
43
0
    ->FindInstallSbomInfo(target);
44
0
}