C_STANDARD_REQUIRED.rst 841 B

1234567891011121314151617181920
  1. C_STANDARD_REQUIRED
  2. -------------------
  3. .. versionadded:: 3.1
  4. Boolean describing whether the value of :prop_tgt:`C_STANDARD` is a requirement.
  5. If this property is set to ``ON``, then the value of the
  6. :prop_tgt:`C_STANDARD` target property is treated as a requirement. If this
  7. property is ``OFF`` or unset, the :prop_tgt:`C_STANDARD` target property is
  8. treated as optional and may "decay" to a previous standard if the requested is
  9. not available. For compilers that have no notion of a C standard level, such
  10. as Microsoft Visual C++ before VS 16.7, this property has no effect.
  11. See the :manual:`cmake-compile-features(7)` manual for information on
  12. compile features and a list of supported compilers.
  13. This property is initialized by the value of
  14. the :variable:`CMAKE_C_STANDARD_REQUIRED` variable if it is set when a
  15. target is created.