cmake/Help/prop_tgt/COMPILE_OPTIONS.rst

18 lines
699 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
COMPILE_OPTIONS
---------------
List of options to pass to the compiler.
2015-08-17 11:37:30 +02:00
This property holds a :ref:`;-list <CMake Language Lists>` of options
specified so far for its target. Use the :command:`target_compile_options`
command to append more options.
2014-08-03 19:52:23 +02:00
2016-07-09 11:21:54 +02:00
This property is initialized by the :prop_dir:`COMPILE_OPTIONS` directory
2015-08-17 11:37:30 +02:00
property when a target is created, and is used by the generators to set
the options for the compiler.
2014-08-03 19:52:23 +02:00
Contents of ``COMPILE_OPTIONS`` may use "generator expressions" with the
syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual
for available expressions. See the :manual:`cmake-buildsystem(7)` manual
for more on defining buildsystem properties.