| 552 | }; |
| 553 | |
| 554 | bool IncludeEntry(LinkEntry const& entry) const |
| 555 | { |
| 556 | if (entry.Feature != cmComputeLinkDepends::LinkEntry::DEFAULT) { |
| 557 | auto const& featureAttributes = GetLinkLibraryFeatureAttributes( |
| 558 | this->Target->Makefile, this->LinkLanguage, entry.Feature); |
| 559 | if ((!entry.Target || |
| 560 | featureAttributes.LibraryTypes.find(entry.Target->GetType()) != |
| 561 | featureAttributes.LibraryTypes.end()) && |
| 562 | featureAttributes.Deduplication != |
| 563 | LinkLibraryFeatureAttributeSet::Default) { |
| 564 | return featureAttributes.Deduplication == |
| 565 | LinkLibraryFeatureAttributeSet::No; |
| 566 | } |
| 567 | } |
| 568 | |
| 569 | return this->Deduplication == None || |
| 570 | (this->Deduplication == Shared && |
| 571 | (!entry.Target || |
| 572 | entry.Target->GetType() != cmStateEnums::SHARED_LIBRARY)) || |
| 573 | (this->Deduplication == All && entry.Kind != LinkEntry::Library); |
| 574 | } |
| 575 | |
| 576 | template <typename Range> |
| 577 | void AddLibraries(Range const& libEntries) |
no test coverage detected