Description
Libcxx's document of C++ std library modules in Modules in libc++ is outdated, which is compiled from Modules.rst.
In this document, the std library modules are downloaded from build directory into project directory through FetchContent
. However, this requires the downloaded library to be a CMake project, which does not hold anymore after the #76083 is merged. Now people following this document will find it confusing and frustrating.
Fortunately, the author provides another way to use the std modules in #75741 , which uses the CMake option -DLIBCXX_INSTALL_MODULES=ON
to install the std.cppm
and std.compat.cppm
. However the author said that currently there is not build system support. But I have explored a premature way to use the installed std modules in CMake. I'd like to contribute it to the libcxx's document. But I'm not sure whether such a pull request is acceptable.