summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetSourcesCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-04-11 18:06:15 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-04-11 18:06:15 (GMT)
commitc5d4812f20b61982494c11412190f040a6178be6 (patch)
tree76697487500e783edae77c3168d8e98d6cffeb6b /Source/cmTargetSourcesCommand.cxx
parent05783b168d47c2062817d58cb0a905dd6893cf8b (diff)
downloadCMake-c5d4812f20b61982494c11412190f040a6178be6.zip
CMake-c5d4812f20b61982494c11412190f040a6178be6.tar.gz
CMake-c5d4812f20b61982494c11412190f040a6178be6.tar.bz2
cmTarget: make HEADER_SETS and INTERFACE_HEADER_SETS read-only
There is no reason to allow these properties to be manipulated by user code. Instead, use the stored visibility on the fileset objects to derive what these properties should contain.
Diffstat (limited to 'Source/cmTargetSourcesCommand.cxx')
-rw-r--r--Source/cmTargetSourcesCommand.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/cmTargetSourcesCommand.cxx b/Source/cmTargetSourcesCommand.cxx
index bf57cc7..b1367e1 100644
--- a/Source/cmTargetSourcesCommand.cxx
+++ b/Source/cmTargetSourcesCommand.cxx
@@ -264,15 +264,6 @@ bool TargetSourcesImpl::HandleOneFileSet(
if (args.BaseDirs.empty()) {
args.BaseDirs.emplace_back(this->Makefile->GetCurrentSourceDirectory());
}
-
- if (scope == "PRIVATE"_s || scope == "PUBLIC"_s) {
- this->Target->AppendProperty(cmTarget::GetFileSetsPropertyName(type),
- args.FileSet);
- }
- if (scope == "INTERFACE"_s || scope == "PUBLIC"_s) {
- this->Target->AppendProperty(
- cmTarget::GetInterfaceFileSetsPropertyName(type), args.FileSet);
- }
} else {
type = fileSet.first->GetType();
if (!args.Type.empty() && args.Type != type) {