summaryrefslogtreecommitdiff
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-27 16:25:09 -0400
committerBrad King <brad.king@kitware.com>2015-03-27 16:25:09 -0400
commitac14cbf01710c08e9bf31670cf40d88512b55752 (patch)
treed6df138d63017c30c18b9b244d79d5f926bff120 /Help/command
parent817d31db9797bfc1c6ff7e60e420532362b14463 (diff)
downloadcmake-ac14cbf01710c08e9bf31670cf40d88512b55752.tar.gz
Allow add_dependencies() on INTERFACE libraries (#15414)
Revert commit v3.0.0-rc1~175^2~20 (add_dependencies: Disallow use with INTERFACE_LIBRARY, 2013-12-25). Teach our dependency analysis to transitively follow INTERFACE target utility dependencies as was done or IMPORTED targets in commit v2.8.6~127^2~1 (Allow add_dependencies() on imported targets, 2010-11-19). Extend the InterfaceLibrary test with a case to cover header generation for a header-only INTERFACE library via a custom target.
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/add_dependencies.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/command/add_dependencies.rst b/Help/command/add_dependencies.rst
index 1cbac200ba..c3583cf952 100644
--- a/Help/command/add_dependencies.rst
+++ b/Help/command/add_dependencies.rst
@@ -13,8 +13,8 @@ is one created by one of the :command:`add_executable`,
:command:`add_library`, or :command:`add_custom_target` commands.
Dependencies added to an :ref:`imported target <Imported Targets>`
-are followed transitively in its place since the target itself does
-not build.
+or an :ref:`interface library <Interface Libraries>` are followed
+transitively in its place since the target itself does not build.
See the ``DEPENDS`` option of :command:`add_custom_target` and
:command:`add_custom_command` commands for adding file-level