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:
parent
7b047861b0
commit
ecaab32ef0
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user