summaryrefslogtreecommitdiffstats
path: root/Help/command/add_library.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-03 10:12:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-03 10:12:31 (GMT)
commit85a9f056a12582028123e88c4c9985ab2bf1220a (patch)
treeddcc05a3ec76fc2f084dc0a22f012b471509d91d /Help/command/add_library.rst
parent007109b20f8ef07cc8d473bf7bc3b97d4c3cd2b4 (diff)
parent056489d567b657bd1ebeae8bf78f4937f900b2e0 (diff)
downloadCMake-85a9f056a12582028123e88c4c9985ab2bf1220a.zip
CMake-85a9f056a12582028123e88c4c9985ab2bf1220a.tar.gz
CMake-85a9f056a12582028123e88c4c9985ab2bf1220a.tar.bz2
Merge topic 'imported-local-target-alias'
056489d567 add_library/add_executable: allow local alias to imported targets 254f2b9058 Help: add_executable: Add TOC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4837
Diffstat (limited to 'Help/command/add_library.rst')
-rw-r--r--Help/command/add_library.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst
index 7274e44..01c415a 100644
--- a/Help/command/add_library.rst
+++ b/Help/command/add_library.rst
@@ -139,8 +139,13 @@ Alias Libraries
Creates an :ref:`Alias Target <Alias Targets>`, such that ``<name>`` can be
used to refer to ``<target>`` in subsequent commands. The ``<name>`` does
not appear in the generated buildsystem as a make target. The ``<target>``
-may not be a non-``GLOBAL`` :ref:`Imported Target <Imported Targets>` or an
-``ALIAS``.
+may not be an ``ALIAS``.
+
+An ``ALIAS`` to a non-``GLOBAL`` :ref:`Imported Target <Imported Targets>`
+has scope in the directory in which the alias is created and below.
+The :prop_tgt:`ALIAS_GLOBAL` target property can be used to check if the
+alias is global or not.
+
``ALIAS`` targets can be used as linkable targets and as targets to
read properties from. They can also be tested for existence with the
regular :command:`if(TARGET)` subcommand. The ``<name>`` may not be used