.. _CheckCXXFeatures:

CheckCXXFeatures
================

.. cmake_module::

   Module that checks for supported C++20, C++17 and non-standard features.

   The behaviour of this module can be modified by the following variable:

   :ref:`DISABLE_CXX_VERSION_CHECK`
      Disable checking for std=c++20 (c++23, ...)

   This module internally sets the following variables, which are then
   exported into the config.h of the current dune module.

   :code:`HAS_ATTRIBUTE_UNUSED`
      True if attribute unused is supported

   :code:`HAS_ATTRIBUTE_DEPRECATED`
      True if attribute deprecated is supported

   :code:`HAS_ATTRIBUTE_DEPRECATED_MSG`
      True if attribute deprecated("msg") is supported

