summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/TargetPolicies
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-03-22 11:09:23 -0400
committerBrad King <brad.king@kitware.com>2022-03-24 08:23:55 -0400
commitcf312a2e5423c49cc5da446f5407a6f4a596a3cb (patch)
tree3bde9691ad13e40b06744b63a2c53dda75cbdf2a /Tests/RunCMake/TargetPolicies
parent41a6b4a53ba844ef986b0bc4efe8938b97eea810 (diff)
downloadcmake-cf312a2e5423c49cc5da446f5407a6f4a596a3cb.tar.gz
LINK_LIBRARIES: Add support for LINK_ONLY genex
Previously we always used content guarded by `$<LINK_ONLY:...>` in `LINK_LIBRARIES`, even when evaluating for non-linking usage requirements. Add a policy to honor `LINK_ONLY` in `LINK_LIBRARIES` the same way we already do in `INTERFACE_LINK_LIBRARIES`.
Diffstat (limited to 'Tests/RunCMake/TargetPolicies')
-rw-r--r--Tests/RunCMake/TargetPolicies/PolicyList-stderr.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetPolicies/PolicyList-stderr.txt b/Tests/RunCMake/TargetPolicies/PolicyList-stderr.txt
index 3846d7c9b9..97c339450d 100644
--- a/Tests/RunCMake/TargetPolicies/PolicyList-stderr.txt
+++ b/Tests/RunCMake/TargetPolicies/PolicyList-stderr.txt
@@ -35,6 +35,7 @@
\* CMP0112
\* CMP0113
\* CMP0119
+ \* CMP0131
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)