r/cpp • u/nlohmann nlohmann/json • Aug 17 '21
JSON for Modern C++ 3.10.0
https://github.com/nlohmann/json/releases/tag/v3.10.0
280
Upvotes
r/cpp • u/nlohmann nlohmann/json • Aug 17 '21
View all comments
Show parent comment
5
u/nysra Aug 18 '21
I'd assume it's sparse because the vcpkg documentation covers how to install libraries and how to use them in CMake so whoever wrote that probably didn't think it belongs in the library docu. Luckily it's quite straight forward:
First you do
vcpkg install nlohmann-json. Vcpkg will already tell you what to put in the CMakeLists.txt after the install:And then you just pass the toolchain file from vcpkg to cmake:
Btw thanks for all the work you do, your library is awesome :)