CXX_STANDARD_REQUIRED.rst 664 B

1234567891011121314151617
  1. CXX_STANDARD_REQUIRED
  2. ---------------------
  3. Boolean describing whether the value of :prop_tgt:`CXX_STANDARD` is a requirement.
  4. If this property is set to ``ON``, then the value of the
  5. :prop_tgt:`CXX_STANDARD` target property is treated as a requirement. If this
  6. property is ``OFF`` or unset, the :prop_tgt:`CXX_STANDARD` target property is
  7. treated as optional and may "decay" to a previous standard if the requested is
  8. not available.
  9. See the :manual:`cmake-compile-features(7)` manual for information on
  10. compile features.
  11. This property is initialized by the value of
  12. the :variable:`CMAKE_CXX_STANDARD_REQUIRED` variable if it is set when a
  13. target is created.