summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_CXX_COMPILER_IMPORT_STD.rst
blob: 384b5eb7b1d94cb87d5469113720316575b54fce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CMAKE_CXX_COMPILER_IMPORT_STD
-----------------------------

.. versionadded:: 3.30

A list of C++ standard levels for which ``import std`` support exists for the
current C++ toolchain.  Support for C++\<NN\> may be detected using a
``<NN> IN_LIST CMAKE_CXX_COMPILER_IMPORT_STD`` predicate with the
:command:`if` command.

.. note ::

   This variable is meaningful only when experimental support for ``import
   std;`` has been enabled by the ``CMAKE_EXPERIMENTAL_CXX_IMPORT_STD`` gate.