LINK_OPTIONS.rst 763 B

12345678910111213141516171819
  1. LINK_OPTIONS
  2. ------------
  3. .. versionadded:: 3.13
  4. List of options to use for the link step of shared library, module
  5. and executable targets as well as the device link step.
  6. This property holds a :ref:`semicolon-separated list <CMake Language Lists>` of options
  7. given so far to the :command:`add_link_options` command.
  8. This property is used to initialize the :prop_tgt:`LINK_OPTIONS` target
  9. property when a target is created, which is used by the generators to set
  10. the options for the compiler.
  11. Contents of ``LINK_OPTIONS`` may use "generator expressions" with the
  12. syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual
  13. for available expressions. See the :manual:`cmake-buildsystem(7)` manual
  14. for more on defining buildsystem properties.