LINK_DIRECTORIES.rst 798 B

1234567891011121314151617
  1. LINK_DIRECTORIES
  2. ----------------
  3. List of linker search directories.
  4. This property holds a :ref:`semicolon-separated list <CMake Language Lists>` of directories
  5. and is typically populated using the :command:`link_directories` command.
  6. It gets its initial value from its parent directory, if it has one.
  7. The directory property is used to initialize the :prop_tgt:`LINK_DIRECTORIES`
  8. target property when a target is created. That target property is used
  9. by the generators to set the library search directories for the linker.
  10. Contents of ``LINK_DIRECTORIES`` may use "generator expressions" with
  11. the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  12. manual for available expressions. See the :manual:`cmake-buildsystem(7)`
  13. manual for more on defining buildsystem properties.