CXX_STANDARD_REQUIRED.rst 788 B

123456789101112131415161718
  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. For compilers that have no notion of a standard level, such as
  9. MSVC, this has no effect.
  10. See the :manual:`cmake-compile-features(7)` manual for information on
  11. compile features and a list of supported compilers.
  12. This property is initialized by the value of
  13. the :variable:`CMAKE_CXX_STANDARD_REQUIRED` variable if it is set when a
  14. target is created.