export_library_dependencies.rst 1.1 KB

12345678910111213141516171819202122232425262728
  1. export_library_dependencies
  2. ---------------------------
  3. Disallowed. See CMake Policy :policy:`CMP0033`.
  4. Use :command:`install(EXPORT)` or :command:`export` command.
  5. This command generates an old-style library dependencies file.
  6. Projects requiring CMake 2.6 or later should not use the command. Use
  7. instead the :command:`install(EXPORT)` command to help export targets from an
  8. installation tree and the :command:`export` command to export targets from a
  9. build tree.
  10. The old-style library dependencies file does not take into account
  11. per-configuration names of libraries or the
  12. :prop_tgt:`LINK_INTERFACE_LIBRARIES` target property.
  13. ::
  14. export_library_dependencies(<file> [APPEND])
  15. Create a file named ``<file>`` that can be included into a CMake listfile
  16. with the INCLUDE command. The file will contain a number of SET
  17. commands that will set all the variables needed for library dependency
  18. information. This should be the last command in the top level
  19. CMakeLists.txt file of the project. If the ``APPEND`` option is
  20. specified, the SET commands will be appended to the given file instead
  21. of replacing it.