mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-30 12:20:58 +01:00
13 lines
448 B
Text
13 lines
448 B
Text
|
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/features/macros/#json_use_implicit_conversions
|