usage 448 B

123456789101112
  1. The package nlohmann-json provides CMake targets:
  2. find_package(nlohmann_json CONFIG REQUIRED)
  3. target_link_libraries(main PRIVATE nlohmann_json::nlohmann_json)
  4. The package nlohmann-json can be configured to not provide implicit conversions via a custom triplet file:
  5. set(nlohmann-json_IMPLICIT_CONVERSIONS OFF)
  6. For more information, see the docs here:
  7. https://json.nlohmann.me/features/macros/#json_use_implicit_conversions