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