summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-08 14:58:47 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-01-08 14:58:47 (GMT)
commitbeb9cfae1798ef3e25be8d1cec7ce9ae33abec7b (patch)
treed85c7825bcbc62c9b7ff87d4ae275443167d2ae2
parent1857660984e4981ab00070d75e734b7f49d6d9fa (diff)
parent28ffb7e0bed9d2bf3547f1c86032fe410f54a3bf (diff)
downloadCMake-beb9cfae1798ef3e25be8d1cec7ce9ae33abec7b.zip
CMake-beb9cfae1798ef3e25be8d1cec7ce9ae33abec7b.tar.gz
CMake-beb9cfae1798ef3e25be8d1cec7ce9ae33abec7b.tar.bz2
Merge topic 'cmp0022-docs'
28ffb7e Note how to write CMP0022 compatible code with CMake 2.8.9.
-rw-r--r--Help/policy/CMP0022.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/policy/CMP0022.rst b/Help/policy/CMP0022.rst
index d068c55..16a5bc3 100644
--- a/Help/policy/CMP0022.rst
+++ b/Help/policy/CMP0022.rst
@@ -22,6 +22,10 @@ downstream users of CMake versions older than 2.8.12. The
target_link_libraries command will no longer populate the properties
matching LINK_INTERFACE_LIBRARIES(_<CONFIG>)? if this policy is NEW.
+Warning-free future-compatible code which works with CMake 2.8.9 onwards
+can be written by using the ``LINK_PRIVATE`` and ``LINK_PUBLIC`` keywords
+of :command:`target_link_libraries`.
+
The OLD behavior for this policy is to ignore the
INTERFACE_LINK_LIBRARIES property for in-build targets. The NEW
behavior for this policy is to use the INTERFACE_LINK_LIBRARIES