This commit is contained in:
nlohmann committed 2026-11-15 18:44:48 +00:00
1 parent 9f62284716
commit 70feeb496c
447 files changed
+1643 -876

No files matched your search

+2
View File
@@ -234,6 +234,8 @@ target_link_libraries(myproject PRIVATE nlohmann_json_modules)
target_compile_definitions(myproject PRIVATE NLOHMANN_JSON_BUILD_MODULES)
```
If `main.cpp` also uses `import std;`, the project needs CMake 4.5 or newer and a Ninja generator; see [Modules](https://json.nlohmann.me/features/modules/#requirements) for the supported toolchains.
## See also
- [Macros](https://json.nlohmann.me/api/macros/index.md) - reference of all macros