The fmt package is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://github.com/fmtlib/fmt/archive/11.0.1/fmt-11.0.1.tar.gz
Download MD5 sum: 8d54d53010df6873879f2c15a98dcf54
Download size: 684 KB
Estimated disk space required: 3.9 MB (add 39 MB for tests)
Estimated build time: less than 0.1 SBU (add 0.2 SBU for tests; both using parallelism=4)
Install fmt by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
-D BUILD_SHARED_LIBS=ON \
-D FMT_TEST=OFF \
-G Ninja .. &&
ninja
If you have enabled tests, issue: ninja test.
Now, as the root user:
ninja install
-D FMT_TEST=OFF: This
switch initializes the package tests. Set to ON if you wish to run
tests.