diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2017-09-14 11:15:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-26 13:11:04 (GMT) |
commit | 494906a8a21f44e9233632d9be7f93ee3990aaaf (patch) | |
tree | 027746c20b4cc38e33f4ec9e30e295c2d89da23a /Help | |
parent | fe4b25ec2fa09a50b6ffbfcf29e118afdfba0659 (diff) | |
download | CMake-494906a8a21f44e9233632d9be7f93ee3990aaaf.zip CMake-494906a8a21f44e9233632d9be7f93ee3990aaaf.tar.gz CMake-494906a8a21f44e9233632d9be7f93ee3990aaaf.tar.bz2 |
Add support for IMPORTED GLOBAL targets to be aliased
Issue: #15569
Issue: #17197
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/add_executable.rst | 5 | ||||
-rw-r--r-- | Help/command/add_library.rst | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Help/command/add_executable.rst b/Help/command/add_executable.rst index 6763620..c7a30d7 100644 --- a/Help/command/add_executable.rst +++ b/Help/command/add_executable.rst @@ -74,8 +74,9 @@ properties for more information. 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 an :ref:`Imported Target <Imported Targets>` or an -``ALIAS``. ``ALIAS`` targets can be used as targets to read properties +``<target>`` may not be a non-``GLOBAL`` +:ref:`Imported Target <Imported Targets>` or an ``ALIAS``. +``ALIAS`` targets can be used as targets to read properties from, executables for custom commands and custom targets. They can also be tested for existence with the regular :command:`if(TARGET)` subcommand. The ``<name>`` may not be used to modify properties of ``<target>``, that diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst index 78b316d..4e85d8c 100644 --- a/Help/command/add_library.rst +++ b/Help/command/add_library.rst @@ -125,7 +125,8 @@ 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 an :ref:`Imported Target <Imported Targets>` or an ``ALIAS``. +may not be a non-``GLOBAL`` :ref:`Imported Target <Imported Targets>` or an +``ALIAS``. ``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 |