| 76 | } |
| 77 | |
| 78 | void 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 | } |
no test coverage detected
searching dependent graphs…