summaryrefslogtreecommitdiffstats
path: root/Tests/CustomTransitiveProperties/CMP0189
Commit message (Collapse)AuthorAgeFilesLines
* file(GENERATE): Record CMP0189 at each call siteBrad King2025-09-233-2/+42
| | | | | | | | | | | | | | Policy CMP0189, introduced by commit b3da9c6d60 (GenEx: Evaluate LINK_LIBRARIES target properties transitively, 2025-02-24, v4.1.0-rc1~731^2), takes effect at generation time, and so uses the policy value as of the end of each directory. However, some projects may rely on `file(GENERATE)` with the policy's OLD behavior in order to extract targets' *direct* dependencies from `LINK_LIBRARIES`. Pending a first-class solution to that problem, make it easier for projects to port to the policy's NEW behavior in general while retaining the OLD behavior in an isolated context. Fixes: #27220
* GenEx: Evaluate LINK_LIBRARIES target properties transitivelyBrad King2025-02-242-0/+89
The `LINK_LIBRARIES` and `INTERFACE_LINK_LIBRARIES` target properties establish the graph of link dependencies used to propagate usage requirements transitively. Therefore the `$<TARGET_PROPERTY:...>` generator expression should evaluate them transitively as it does for other transitive properties. Add policy CMP0189 for compatibility. Fixes: #26709 Issue: #12435