Files
fmt/test
Mathew Benson 4e1b170b44 Add Separate CMake Target for C++20 Modules (#4685)
* Add Separate CMake Target for C++20 Modules

In the same vein as there is the `fmt::fmt-header-only`, `fmt::fmt` and
`fmt::fmt_c` targets, I propose the addition of a new target
`fmt::fmt-module` which will be for the compilation of the FMT_MODULE
library option.

The new target will have the properties requried for Compiling,
Installing and using the C++20 functionality in CMake

The `add_module_library` function is marked as deprecated as its
functionality is superseded.

Updated the logic for setting the FMT_USE_CMAKE_MODULE flag to check the
versions for Ninja and MSVC according the CMAKE Documents and setting
the FMT_MODULE flag based on this

* Add Separate CMake Target for C++20 Modules

In the same vein as there is the `fmt::fmt-header-only`, `fmt::fmt` and
`fmt::fmt_c` targets, I propose the addition of a new target
`fmt::fmt-module` which will be for the compilation of the FMT_MODULE
library option.

The new target will have the properties requried for Compiling,
Installing and using the C++20 functionality in CMake

Updated the logic for setting the FMT_USE_CMAKE_MODULE flag to check the
versions for Ninja and MSVC according the CMAKE Documents and setting
the FMT_MODULE flag based on this

Fixed the test/CMakeLists.txt file which used the FMT_MODULE flag to
separate the module and non-module library testing, in particular
disableing the module version.

The module testing still needs to be fixed, but the expected behavior of
testing the non-modular version is working.

---------

Co-authored-by: Mathew Benson <mathew@benson.co.ke>
Co-authored-by: ClausKlein <claus.klein@arcormail.de>
2026-03-02 09:11:31 -08:00
..
2024-01-09 19:36:12 -08:00
2026-01-04 16:45:17 -08:00
2024-01-09 19:36:12 -08:00
2025-12-09 18:27:32 -08:00
2025-09-01 12:21:17 -07:00
2024-01-09 19:36:12 -08:00
2026-01-29 21:30:20 -08:00
2026-02-21 17:15:19 -08:00
2025-09-01 12:21:17 -07:00
2026-01-29 20:18:18 -08:00
2024-01-01 15:55:37 -08:00
2024-01-01 15:55:37 -08:00
2024-01-09 19:36:12 -08:00
2025-08-16 12:20:02 -07:00
2023-05-03 07:56:24 -07:00
2024-01-09 19:36:12 -08:00
2025-07-04 10:52:59 -07:00
2025-11-22 07:30:11 -08:00
2024-07-17 06:59:24 -07:00
2024-01-14 06:44:38 -08:00
2023-12-30 16:07:35 -08:00
2026-01-29 20:18:18 -08:00
2024-09-29 10:04:57 -07:00
2024-09-13 18:41:10 -07:00
2024-08-29 11:21:29 -07:00
2026-01-29 20:18:18 -08:00