CMAKE_CXX_MODULE_STD — CMake 4.3.0 Documentation

# CMAKE_CXX_MODULE_STD

Added in version 3.30.

Whether to add utility targets as dependencies to targets with at least `cxx_std_23` or not.

Note

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

This variable is used to initialize the `CXX_MODULE_STD` property on all targets. See that target property for additional information.