mirror of
https://github.com/fmtlib/fmt.git
synced 2026-06-15 08:26:13 +08:00
790 B
790 B
{fmt}
{fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.
Using {fmt} as a C++20 Module
To use {fmt} as a C++20 module, ensure your project is configured with C++20 or later and that your compiler supports modules (e.g., GCC 14+, Clang 16+, or MSVC 19.34+).
CMake Configuration
The recommended way to use {fmt} is via the provided CMake target. Do not wrap the library in your own module; use the one provided by the build system.
- Enable module scanning in your
CMakeLists.txt: