diff options
author | Brad King <brad.king@kitware.com> | 2013-11-03 11:45:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-03 14:14:54 (GMT) |
commit | 0a561a03475f4ed1e017802970a8f17998fe05c3 (patch) | |
tree | aab30abe815bc222e1bd8ded999c5229d3dd0e77 /Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt | |
parent | 23d21b78e125c11a0d901eb987e5f616026ff8fd (diff) | |
download | CMake-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.txt | 2 |
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. |