summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
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 /Help/prop_tgt
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 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/HEADER_SETS.rst12
-rw-r--r--Help/prop_tgt/INTERFACE_HEADER_SETS.rst7
2 files changed, 6 insertions, 13 deletions
diff --git a/Help/prop_tgt/HEADER_SETS.rst b/Help/prop_tgt/HEADER_SETS.rst
index fcf723e..eaec79f 100644
--- a/Help/prop_tgt/HEADER_SETS.rst
+++ b/Help/prop_tgt/HEADER_SETS.rst
@@ -3,14 +3,10 @@ HEADER_SETS
.. versionadded:: 3.23
-List of the target's ``PRIVATE`` and ``PUBLIC`` header sets (i.e. all
-file sets with the type ``HEADERS``). Files listed in these file sets
-are treated as source files for the purpose of IDE integration.
-The files also have their :prop_sf:`HEADER_FILE_ONLY` property set to
-``TRUE``.
-
-This property is normally only set by :command:`target_sources(FILE_SET)`
-rather than being manipulated directly.
+Read-only list of the target's ``PRIVATE`` and ``PUBLIC`` header sets (i.e.
+all file sets with the type ``HEADERS``). Files listed in these file sets are
+treated as source files for the purpose of IDE integration. The files also
+have their :prop_sf:`HEADER_FILE_ONLY` property set to ``TRUE``.
See also :prop_tgt:`HEADER_SET_<NAME>`, :prop_tgt:`HEADER_SET` and
:prop_tgt:`INTERFACE_HEADER_SETS`.
diff --git a/Help/prop_tgt/INTERFACE_HEADER_SETS.rst b/Help/prop_tgt/INTERFACE_HEADER_SETS.rst
index 62db5b3..498dc31 100644
--- a/Help/prop_tgt/INTERFACE_HEADER_SETS.rst
+++ b/Help/prop_tgt/INTERFACE_HEADER_SETS.rst
@@ -3,12 +3,9 @@ INTERFACE_HEADER_SETS
.. versionadded:: 3.23
-List of the target's ``INTERFACE`` and ``PUBLIC`` header sets (i.e. all
-file sets with the type ``HEADERS``). Files listed in these header sets
+Read-only list of the target's ``INTERFACE`` and ``PUBLIC`` header sets (i.e.
+all file sets with the type ``HEADERS``). Files listed in these header sets
can be installed with :command:`install(TARGETS)` and exported with
:command:`install(EXPORT)` and :command:`export`.
-This property is normally only set by :command:`target_sources(FILE_SET)`
-rather than being manipulated directly.
-
See also :prop_tgt:`HEADER_SETS`.