🔊 add message if implicit conversions are switched off

pull/2303/head
Niels Lohmann 2020-07-23 13:11:48 +02:00
parent f9b71afebf
commit fb22233f34
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@ endif ()
option(JSON_BuildTests "Build the unit tests when BUILD_TESTING is enabled." ON)
option(JSON_Install "Install CMake targets during install step." ON)
option(JSON_MultipleHeaders "Use non-amalgamated version of the library." OFF)
option(JSON_ImplicitConversions "Enable implicit conversions" ON)
option(JSON_ImplicitConversions "Enable implicit conversions." ON)
##
## CONFIGURATION
@ -49,6 +49,10 @@ else()
message(STATUS "Using the single-header code from ${NLOHMANN_JSON_INCLUDE_BUILD_DIR}")
endif()
if (NOT JSON_ImplicitConversions)
message(STATUS "Implicit conversions are disabled")
endif()
##
## TARGET
## create target and add include path