mirror of
https://github.com/reactos/CMake.git
synced 2024-12-21 11:09:08 +00:00
0a561a0347
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.
18 lines
525 B
Plaintext
18 lines
525 B
Plaintext
^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.
|
|
|
|
Target "bar" has an INTERFACE_LINK_LIBRARIES property which differs from
|
|
its LINK_INTERFACE_LIBRARIES properties.
|
|
|
|
INTERFACE_LINK_LIBRARIES:
|
|
|
|
foo
|
|
|
|
LINK_INTERFACE_LIBRARIES:
|
|
|
|
bat
|
|
|
|
This warning is for project developers. Use -Wno-dev to suppress it.$
|