COMPILE_OPTIONS.rst 654 B

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