aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nlohmann-json/usage
blob: 19c76d508d09dcf07e54855372fc4f587c67c4b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
The package nlohmann-json provides CMake targets:

    find_package(nlohmann_json CONFIG REQUIRED)
    target_link_libraries(main PRIVATE nlohmann_json::nlohmann_json)

The package nlohmann-json can be configured to not provide implicit conversions via a custom triplet file:

    set(nlohmann-json_IMPLICIT_CONVERSIONS OFF)

For more information, see the docs here:
    
    https://json.nlohmann.me/api/macros/json_use_implicit_conversions/