mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
b730ec068d
This commit removes the public include of nlohmann/json
as it is a *detail of implementation*. Instead, the public
API exposes:
```cpp
std::string to_json(...);
```
In addition, it enables to externally provide nlohmann/json using
the cmake option ``-DLIEF_OPT_NLOHMANN_JSON_EXTERNAL=on``.
For instance, this option can be used as follows:
```bash
$ cmake -DLIEF_OPT_NLOHMANN_JSON_EXTERNAL=on \
-Dnlohmann_json_DIR=<PATH>/lib/cmake/nlohmann_json
```
Related to #605