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

Function AddInterfaceEntries

Source/cmEvaluatedTargetProperty.cxx:78–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void AddInterfaceEntries(cmGeneratorTarget const* headTarget,
79 std::string const& prop,
80 cm::GenEx::Context const& context,
81 cmGeneratorExpressionDAGChecker* dagChecker,
82 EvaluatedTargetPropertyEntries& entries,
83 IncludeRuntimeInterface searchRuntime,
84 cmGeneratorTarget::UseTo usage)
85{
86 if (searchRuntime == IncludeRuntimeInterface::Yes) {
87 if (cmLinkImplementation const* impl =
88 headTarget->GetLinkImplementation(context.Config, usage)) {
89 entries.HadContextSensitiveCondition =
90 impl->HadContextSensitiveCondition;
91
92 auto runtimeLibIt =
93 impl->LanguageRuntimeLibraries.find(context.Language);
94 if (runtimeLibIt != impl->LanguageRuntimeLibraries.end()) {
95 addInterfaceEntry(headTarget, prop, context, dagChecker, entries,
96 usage, runtimeLibIt->second);
97 }
98 addInterfaceEntry(headTarget, prop, context, dagChecker, entries, usage,
99 impl->Libraries);
100 }
101 } else {
102 if (cmLinkImplementationLibraries const* impl =
103 headTarget->GetLinkImplementationLibraries(context.Config, usage)) {
104 entries.HadContextSensitiveCondition =
105 impl->HadContextSensitiveCondition;
106 addInterfaceEntry(headTarget, prop, context, dagChecker, entries, usage,
107 impl->Libraries);
108 }
109 }
110}

Callers 10

GetSourceFilePathsMethod · 0.85
GetLinkDirectoriesMethod · 0.85
SetupWriteAutogenInfoMethod · 0.85
GetCompileOptionsMethod · 0.85
GetCompileFeaturesMethod · 0.85
GetCompileDefinitionsMethod · 0.85
GetPrecompileHeadersMethod · 0.85
GetLinkOptionsMethod · 0.85
GetLinkDependsMethod · 0.85
GetIncludeDirectoriesMethod · 0.85

Calls 5

addInterfaceEntryFunction · 0.85
GetLinkImplementationMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…