COMPILE_FLAGS.rst 607 B

123456789101112131415
  1. COMPILE_FLAGS
  2. -------------
  3. Additional flags to be added when compiling this source file.
  4. The ``COMPILE_FLAGS`` property sets additional compiler flags used to build
  5. source files. Use :prop_sf:`COMPILE_DEFINITIONS` to pass additional
  6. preprocessor definitions.
  7. Contents of ``COMPILE_FLAGS`` may use "generator expressions"
  8. with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  9. manual for available expressions. However, :generator:`Xcode`
  10. does not support per-config per-source settings, so expressions
  11. that depend on the build configuration are not allowed with that
  12. generator.