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

Method IncludeEntry

Source/cmComputeLinkDepends.cxx:554–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

AddLibrariesMethod · 0.95

Calls 3

findMethod · 0.45
GetTypeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected