mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
GenEx: Limit TARGET_PROPERTY transitive closure optimization to subgraphs
Fixes: #25728
This commit is contained in:
@@ -1877,6 +1877,14 @@ These expressions look up the values of
|
||||
rather than the directory of the consuming target for which the
|
||||
expression is being evaluated.
|
||||
|
||||
.. versionchanged:: 3.31
|
||||
Generator expressions for transitive interface properties, such as
|
||||
``$<TARGET_PROPERTY:target,INTERFACE_*>``, now correctly handle
|
||||
repeated evaluations within nested generator expressions.
|
||||
Previously, these repeated evaluations returned empty values due
|
||||
to an optimization for transitive closures.
|
||||
This change ensures consistent evaluation for non-union operations.
|
||||
|
||||
.. genex:: $<TARGET_PROPERTY:prop>
|
||||
:target: TARGET_PROPERTY:prop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user