mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
Merge topic 'file-set-repr-improvements' into release-3.23
5fa15ec9f3Help: Document that target_sources defines [INTERFACE_]HEADER_SETSc5d4812f20cmTarget: make HEADER_SETS and INTERFACE_HEADER_SETS read-only05783b168dcmFileSet: store visibility with the fileset Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7168
This commit is contained in:
@@ -3,14 +3,13 @@ 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``.
|
||||
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``.
|
||||
|
||||
This property is normally only set by :command:`target_sources(FILE_SET)`
|
||||
rather than being manipulated directly.
|
||||
Header sets may be defined using the :command:`target_sources` command
|
||||
``FILE_SET`` option with type ``HEADERS``.
|
||||
|
||||
See also :prop_tgt:`HEADER_SET_<NAME>`, :prop_tgt:`HEADER_SET` and
|
||||
:prop_tgt:`INTERFACE_HEADER_SETS`.
|
||||
|
||||
@@ -3,12 +3,12 @@ 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.
|
||||
Header sets may be defined using the :command:`target_sources` command
|
||||
``FILE_SET`` option with type ``HEADERS``.
|
||||
|
||||
See also :prop_tgt:`HEADER_SETS`.
|
||||
|
||||
@@ -114,8 +114,8 @@ Variables
|
||||
Properties
|
||||
----------
|
||||
|
||||
* The :prop_tgt:`HEADER_SETS` and :prop_tgt:`INTERFACE_HEADER_SETS` target
|
||||
properties were added to list header sets associated with a target.
|
||||
* The :prop_tgt:`HEADER_SETS` and :prop_tgt:`INTERFACE_HEADER_SETS` read-only
|
||||
target properties were added to list header sets associated with a target.
|
||||
|
||||
* The :prop_tgt:`HEADER_SET` and :prop_tgt:`HEADER_SET_<NAME>` target
|
||||
properties were added to list files in the default header set
|
||||
@@ -278,3 +278,7 @@ Changes made since CMake 3.23.0 include the following.
|
||||
targets. Pending further work in a future version of CMake, it is now
|
||||
an error to add a ``FILE_SET`` of type ``HEADERS`` to such targets on
|
||||
Apple platforms.
|
||||
|
||||
* The :prop_tgt:`HEADER_SETS` and :prop_tgt:`INTERFACE_HEADER_SETS` target
|
||||
properties added in CMake 3.23.0 are now read-only records of the header
|
||||
sets created by the :command:`target_sources` command.
|
||||
|
||||
Reference in New Issue
Block a user