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

Method GetExportTargetType

Source/cmExportBuildFileGenerator.cxx:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42cmStateEnums::TargetType cmExportBuildFileGenerator::GetExportTargetType(
43 cmGeneratorTarget const* target) const
44{
45 cmStateEnums::TargetType targetType = target->GetType();
46 // An object library exports as an interface library if we cannot
47 // tell clients where to find the objects. This is sufficient
48 // to support transitive usage requirements on other targets that
49 // use the object library.
50 if (targetType == cmStateEnums::OBJECT_LIBRARY &&
51 !target->Target->HasKnownObjectFileLocation(nullptr)) {
52 targetType = cmStateEnums::INTERFACE_LIBRARY;
53 }
54 return targetType;
55}
56
57void cmExportBuildFileGenerator::SetExportSet(cmExportSet* exportSet)
58{

Callers 11

GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45

Calls 2

GetTypeMethod · 0.45

Tested by

no test coverage detected