diff options
author | NeroBurner <pyro4hell@gmail.com> | 2019-02-27 16:23:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-28 16:49:53 (GMT) |
commit | b8307adb9f1cd5c5d8fc5a75fb958356b2f091d7 (patch) | |
tree | 699499bdf31200f90bfaf52bbd26d713aec896fd /Help/command/install.rst | |
parent | 19e15853e9ace8df5acfd784811479cc14d3a369 (diff) | |
download | CMake-b8307adb9f1cd5c5d8fc5a75fb958356b2f091d7.zip CMake-b8307adb9f1cd5c5d8fc5a75fb958356b2f091d7.tar.gz CMake-b8307adb9f1cd5c5d8fc5a75fb958356b2f091d7.tar.bz2 |
Help: inter-link install() commands
Diffstat (limited to 'Help/command/install.rst')
-rw-r--r-- | Help/command/install.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Help/command/install.rst b/Help/command/install.rst index 5580a20..4cef787 100644 --- a/Help/command/install.rst +++ b/Help/command/install.rst @@ -266,20 +266,20 @@ the following additional arguments: is not recommended to use ``NAMELINK_SKIP`` in conjunction with ``NAMELINK_COMPONENT``. -The ``install(TARGETS)`` command can also accept the following options at the +The `install(TARGETS)`_ command can also accept the following options at the top level: ``EXPORT`` This option associates the installed target files with an export called ``<export-name>``. It must appear before any target options. To actually - install the export file itself, call ``install(EXPORT)``, documented below. + install the export file itself, call `install(EXPORT)`_, documented below. See documentation of the :prop_tgt:`EXPORT_NAME` target property to change the name of the exported target. ``INCLUDES DESTINATION`` This option specifies a list of directories which will be added to the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` target property of the - ``<targets>`` when exported by the :command:`install(EXPORT)` command. If a + ``<targets>`` when exported by the `install(EXPORT)`_ command. If a relative path is specified, it is treated as relative to the ``$<INSTALL_PREFIX>``. @@ -313,7 +313,7 @@ targets that link to the object libraries in their implementation. Installing a target with the :prop_tgt:`EXCLUDE_FROM_ALL` target property set to ``TRUE`` has undefined behavior. -:command:`install(TARGETS)` can install targets that were created in +`install(TARGETS)`_ can install targets that were created in other directories. When using such cross-directory install rules, running ``make install`` (or similar) from a subdirectory will not guarantee that targets from other directories are up-to-date. You can use @@ -580,7 +580,7 @@ Installing Exports The ``EXPORT`` form generates and installs a CMake file containing code to import targets from the installation tree into another project. Target installations are associated with the export ``<export-name>`` -using the ``EXPORT`` option of the ``install(TARGETS)`` signature +using the ``EXPORT`` option of the `install(TARGETS)`_ signature documented above. The ``NAMESPACE`` option will prepend ``<namespace>`` to the target names as they are written to the import file. By default the generated file will be called ``<export-name>.cmake`` but the ``FILE`` |