diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-06-04 14:25:47 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-07-08 20:39:09 (GMT) |
commit | d0a76ea07cfc2a73900a9539e940e1e60dbba120 (patch) | |
tree | 8afdc5cb57a2ee3c88db5a677a2e642b40415326 /Tests/RunCMake/CMP0022/CMP0022-WARN-static-stderr.txt | |
parent | ddde61c0b2b46a452366acae690aca0095c0a49c (diff) | |
download | CMake-d0a76ea07cfc2a73900a9539e940e1e60dbba120.zip CMake-d0a76ea07cfc2a73900a9539e940e1e60dbba120.tar.gz CMake-d0a76ea07cfc2a73900a9539e940e1e60dbba120.tar.bz2 |
Introduce the INTERFACE_LINK_LIBRARIES property.
This property replaces the properties which
match (IMPORTED_)?LINK_INTERFACE_LIBRARIES(_<CONFIG>)?, and is enabled
for IMPORTED targets, and for non-IMPORTED targets only with a policy.
For static libraries, the INTERFACE_LINK_LIBRARIES property is
also used as the source of transitive usage requirements content.
Static libraries still require users to link to all entries in
their LINK_LIBRARIES, but usage requirements such as INCLUDE_DIRECTORIES
COMPILE_DEFINITIONS and COMPILE_OPTIONS can be restricted to only
certain interface libraries.
Because the INTERFACE_LINK_LIBRARIES property is populated unconditionally,
we need to compare the evaluated result of it with the link implementation
to determine whether to issue the policy warning for static libraries. For
shared libraries, the policy warning is issued if the contents of
the INTERFACE_LINK_LIBRARIES property differs from the contents of the
relevant config-specific old LINK_INTERFACE_LIBRARIES property.
Diffstat (limited to 'Tests/RunCMake/CMP0022/CMP0022-WARN-static-stderr.txt')
-rw-r--r-- | Tests/RunCMake/CMP0022/CMP0022-WARN-static-stderr.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0022/CMP0022-WARN-static-stderr.txt b/Tests/RunCMake/CMP0022/CMP0022-WARN-static-stderr.txt new file mode 100644 index 0000000..41d132c --- /dev/null +++ b/Tests/RunCMake/CMP0022/CMP0022-WARN-static-stderr.txt @@ -0,0 +1,10 @@ +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. + + Static library target "bar" has a INTERFACE_LINK_LIBRARIES property. This + should be preferred as the source of the link interface for this library. + Ignoring the property and using the link implementation as the link + interface instead. +This warning is for project developers. Use -Wno-dev to suppress it.$ |