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

Method CopyImportedCxxModulesEntries

Source/cmTarget.cxx:1731–1761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1729}
1730
1731void cmTarget::CopyImportedCxxModulesEntries(cmTarget const* tgt)
1732{
1733 // Normal targets cannot be the target of a copy.
1734 assert(!this->IsNormal());
1735 // Imported targets cannot be the target of a copy.
1736 assert(!this->IsImported());
1737 // Only imported targets can be the source of a copy.
1738 assert(tgt->IsImported());
1739
1740 this->impl->IncludeDirectories.Entries.clear();
1741 this->impl->IncludeDirectories.CopyFromEntries(
1742 cmMakeRange(tgt->impl->ImportedCxxModulesIncludeDirectories.Entries));
1743 this->impl->CompileDefinitions.Entries.clear();
1744 this->impl->CompileDefinitions.CopyFromEntries(
1745 cmMakeRange(tgt->impl->ImportedCxxModulesCompileDefinitions.Entries));
1746 this->impl->CompileFeatures.Entries.clear();
1747 this->impl->CompileFeatures.CopyFromEntries(
1748 cmMakeRange(tgt->impl->ImportedCxxModulesCompileFeatures.Entries));
1749 this->impl->CompileOptions.Entries.clear();
1750 this->impl->CompileOptions.CopyFromEntries(
1751 cmMakeRange(tgt->impl->ImportedCxxModulesCompileOptions.Entries));
1752 this->impl->LinkLibraries.Entries.clear();
1753 this->impl->LinkLibraries.CopyFromEntries(
1754 cmMakeRange(tgt->impl->ImportedCxxModulesLinkLibraries.Entries));
1755
1756 // Copy the C++ module fileset entries from `tgt`'s `INTERFACE` to this
1757 // target's `PRIVATE`.
1758 this->impl->CxxModulesFileSets.SelfEntries.Entries.clear();
1759 this->impl->CxxModulesFileSets.SelfEntries.Entries =
1760 tgt->impl->CxxModulesFileSets.InterfaceEntries.Entries;
1761}
1762
1763void cmTarget::CopyImportedCxxModulesProperties(cmTarget const* tgt)
1764{

Callers 1

Calls 5

IsNormalMethod · 0.95
cmMakeRangeFunction · 0.85
CopyFromEntriesMethod · 0.80
IsImportedMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected