summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-03 11:45:21 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-03 14:14:54 (GMT)
commit0a561a03475f4ed1e017802970a8f17998fe05c3 (patch)
treeaab30abe815bc222e1bd8ded999c5229d3dd0e77 /Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt
parent23d21b78e125c11a0d901eb987e5f616026ff8fd (diff)
downloadCMake-0a561a03475f4ed1e017802970a8f17998fe05c3.zip
CMake-0a561a03475f4ed1e017802970a8f17998fe05c3.tar.gz
CMake-0a561a03475f4ed1e017802970a8f17998fe05c3.tar.bz2
CMP0022: Warn about a given target at most once
Since cmTarget::ComputeLinkInterface is called separately for each "head" target that links a target, the warning we produce when CMP0022 is not set could be repeated. Add explicit logic to allow the warning to appear at most once. Multiple copies of the warning for the same target are almost always identical and therefore redundant. In the rare case that two copies of the warning are different, the second can appear in a future run after the first is fixed.
Diffstat (limited to 'Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt')
-rw-r--r--Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt b/Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt
index f849be2..2f7dfbf 100644
--- a/Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt
+++ b/Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt
@@ -1,4 +1,4 @@
-CMake Warning \(dev\) in CMakeLists.txt:
+^CMake Warning \(dev\) in CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy CMP0022" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.