1COMPILE_OPTIONS 2--------------- 3 4List of options to pass to the compiler. 5 6This property holds a :ref:`semicolon-separated list <CMake Language Lists>` 7of options specified so far for its target. Use the 8:command:`target_compile_options` command to append more options. 9The options will be added after after flags in the 10:variable:`CMAKE_<LANG>_FLAGS` and :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` 11variables, but before those propagated from dependencies by the 12:prop_tgt:`INTERFACE_COMPILE_OPTIONS` property. 13 14This property is initialized by the :prop_dir:`COMPILE_OPTIONS` directory 15property when a target is created, and is used by the generators to set 16the options for the compiler. 17 18Contents of ``COMPILE_OPTIONS`` may use "generator expressions" with the 19syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual 20for available expressions. See the :manual:`cmake-buildsystem(7)` manual 21for more on defining buildsystem properties. 22 23.. include:: ../command/OPTIONS_SHELL.txt 24