summaryrefslogtreecommitdiff
path: root/share/cmake-3.10/Help/command/add_dependencies.rst
diff options
context:
space:
mode:
authorAlexander Dorokhine <adorokhine@google.com>2020-02-20 12:33:16 -0800
committerAlexander Dorokhine <adorokhine@google.com>2020-02-20 12:43:04 -0800
commitfc59035d8c856055f2a263dc8a2f9de96c959cc2 (patch)
tree1fc161100c29dae451f06ad52f40ccf1262318ce /share/cmake-3.10/Help/command/add_dependencies.rst
parentf3bfe547014d2d751b7547ad7847a51b0ea34dc8 (diff)
parent64db8fbc54df5507fe46bebd666176bb24d50fd0 (diff)
downloaddarwin-x86-fc59035d8c856055f2a263dc8a2f9de96c959cc2.tar.gz
* origin/cmake-master-dev: Upgrade cmake to 3.10.2 Update cmake (ab/4111459) Add cmake 3.8.2 for tests Update prebuilts to CMake 3.6.0-rc2 (go/ab/3043163). Bug: 149853706 Change-Id: I570636a6ae3ca935925ac36aeef6a2b3dfcf0c82
Diffstat (limited to 'share/cmake-3.10/Help/command/add_dependencies.rst')
-rw-r--r--share/cmake-3.10/Help/command/add_dependencies.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/share/cmake-3.10/Help/command/add_dependencies.rst b/share/cmake-3.10/Help/command/add_dependencies.rst
new file mode 100644
index 0000000..7a66143
--- /dev/null
+++ b/share/cmake-3.10/Help/command/add_dependencies.rst
@@ -0,0 +1,23 @@
+add_dependencies
+----------------
+
+Add a dependency between top-level targets.
+
+::
+
+ add_dependencies(<target> [<target-dependency>]...)
+
+Make a top-level ``<target>`` depend on other top-level targets to
+ensure that they build before ``<target>`` does. A top-level target
+is one created by one of the :command:`add_executable`,
+:command:`add_library`, or :command:`add_custom_target` commands
+(but not targets generated by CMake like ``install``).
+
+Dependencies added to an :ref:`imported target <Imported Targets>`
+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
+dependencies in custom rules. See the :prop_sf:`OBJECT_DEPENDS`
+source file property to add file-level dependencies to object files.