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