1
0
mirror of https://github.com/nlohmann/json synced 2024-11-23 04:20:06 +00:00

🚧 add switch for diagnostics

This commit is contained in:
Niels Lohmann 2021-01-02 13:45:00 +01:00
parent 7b047861b0
commit ecaab32ef0
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -34,6 +34,7 @@ option(JSON_BuildTests "Build the unit tests when BUILD_TESTING is enabled." ${M
option(JSON_Install "Install CMake targets during install step." ${MAIN_PROJECT})
option(JSON_MultipleHeaders "Use non-amalgamated version of the library." OFF)
option(JSON_ImplicitConversions "Enable implicit conversions." ON)
option(JSON_Diagnostics "Enable better diagnostic messages." OFF)
##
## CONFIGURATION
@ -79,6 +80,7 @@ target_compile_definitions(
${NLOHMANN_JSON_TARGET_NAME}
INTERFACE
JSON_USE_IMPLICIT_CONVERSIONS=$<BOOL:${JSON_ImplicitConversions}>
JSON_DIAGNOSTICS=$<BOOL:${JSON_Diagnostics}>
)
target_include_directories(