import-std.rst 629 B

123456789101112131415
  1. import-std
  2. ----------
  3. * The experimental gate for C++23's ``import std`` has been dropped.
  4. * Variable :variable:`CMAKE_CXX_MODULE_STD` and property target
  5. :prop_tgt:`CXX_MODULE_STD` control the availability of ``import std`` for
  6. C++ targets.
  7. * Read-only variable :variable:`CMAKE_CXX_COMPILER_IMPORT_STD` lists the C++
  8. standard levels for which ``import std`` is available on the current
  9. toolchain.
  10. * Variable :variable:`CMAKE_CXX_STDLIB_MODULES_JSON` sets a specific module
  11. metadata file which CMake will use for constructing ``import std`` instead
  12. of relying on automatic detection via the current C++ compiler.