cmake/Help/command/export_library_dependencies.rst

29 lines
1.1 KiB
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
export_library_dependencies
---------------------------
2019-11-11 23:01:05 +01:00
Disallowed since version 3.0. See CMake Policy :policy:`CMP0033`.
2014-08-03 19:52:23 +02:00
Use :command:`install(EXPORT)` or :command:`export` command.
This command generates an old-style library dependencies file.
Projects requiring CMake 2.6 or later should not use the command. Use
2015-11-17 17:22:37 +01:00
instead the :command:`install(EXPORT)` command to help export targets from an
installation tree and the :command:`export` command to export targets from a
2014-08-03 19:52:23 +02:00
build tree.
The old-style library dependencies file does not take into account
2015-11-17 17:22:37 +01:00
per-configuration names of libraries or the
:prop_tgt:`LINK_INTERFACE_LIBRARIES` target property.
2014-08-03 19:52:23 +02:00
2023-05-23 16:38:00 +02:00
.. code-block:: cmake
2014-08-03 19:52:23 +02:00
export_library_dependencies(<file> [APPEND])
2015-11-17 17:22:37 +01:00
Create a file named ``<file>`` that can be included into a CMake listfile
2014-08-03 19:52:23 +02:00
with the INCLUDE command. The file will contain a number of SET
commands that will set all the variables needed for library dependency
information. This should be the last command in the top level
2015-11-17 17:22:37 +01:00
CMakeLists.txt file of the project. If the ``APPEND`` option is
2014-08-03 19:52:23 +02:00
specified, the SET commands will be appended to the given file instead
of replacing it.