cmTarget: rename entry copying method

It will also be used to copy from other targets, not just directories.
This commit is contained in:
Ben Boeckel
2023-01-28 17:28:22 -05:00
parent 1ccf25b049
commit 3a8ea5c3a0

View File

@@ -246,9 +246,9 @@ struct UsageRequirementProperty
{
}
void CopyFromDirectory(cmBTStringRange directoryEntries)
void CopyFromEntries(cmBTStringRange entries)
{
return cm::append(this->Entries, directoryEntries);
return cm::append(this->Entries, entries);
}
enum class Action
@@ -964,7 +964,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
if (this->IsNormal()) {
// Initialize the INCLUDE_DIRECTORIES property based on the current value
// of the same directory property:
this->impl->IncludeDirectories.CopyFromDirectory(
this->impl->IncludeDirectories.CopyFromEntries(
this->impl->Makefile->GetIncludeDirectoriesEntries());
{
@@ -973,11 +973,11 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
sysInc.end());
}
this->impl->CompileOptions.CopyFromDirectory(
this->impl->CompileOptions.CopyFromEntries(
this->impl->Makefile->GetCompileOptionsEntries());
this->impl->LinkOptions.CopyFromDirectory(
this->impl->LinkOptions.CopyFromEntries(
this->impl->Makefile->GetLinkOptionsEntries());
this->impl->LinkDirectories.CopyFromDirectory(
this->impl->LinkDirectories.CopyFromEntries(
this->impl->Makefile->GetLinkDirectoriesEntries());
}