mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Teach the `$<TARGET_PROPERTY:...>` generator expression to check for a new `TRANSITIVE_LINK_PROPERTIES` property in the target's link closure to enable transitive evaluation of named properties through the link closure, including entries guarded by `$<LINK_ONLY:...>`. Fixes: #20416
20 lines
824 B
ReStructuredText
20 lines
824 B
ReStructuredText
TRANSITIVE_COMPILE_PROPERTIES
|
|
-----------------------------
|
|
|
|
.. versionadded:: 3.30
|
|
|
|
Properties that the :genex:`TARGET_PROPERTY` generator expression, on the
|
|
target and its dependents, evaluates as the union of values collected from
|
|
the transitive closure of link dependencies, excluding entries guarded by
|
|
:genex:`LINK_ONLY`.
|
|
|
|
The value is a :ref:`semicolon-separated list <CMake Language Lists>`
|
|
of :ref:`custom transitive property <Custom Transitive Properties>` names.
|
|
Any leading ``INTERFACE_`` prefix is ignored, e.g., ``INTERFACE_PROP`` is
|
|
treated as just ``PROP``.
|
|
|
|
See documentation of the :genex:`TARGET_PROPERTY` generator expression
|
|
for details of custom transitive property evaluation. See also the
|
|
:prop_tgt:`TRANSITIVE_LINK_PROPERTIES` target property, which includes
|
|
entries guarded by :genex:`LINK_ONLY`.
|