From 581f6341d4def054eb11fce4ddb6094bdd37c2ee Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Wed, 10 May 2023 10:25:06 +0200 Subject: [PATCH] Add simple status messages Signed-off-by: Cristian Le --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ad441de..f83c703 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,13 @@ FetchContent_MakeAvailable(${fetch_packages}) # Main definition # ]==============================================================================================] +message(STATUS "JsonValidator: Configured for ${CMAKE_BUILD_TYPE}") +if (DEFINED nlohmann_json_VERSION) + message(STATUS "JsonValidator: Using nlohmann/json version: ${nlohmann_json_VERSION}") +else () + message(STATUS "JsonValidator: nlohmann_json_VERSION is not set. Possible value: ${JSON_FETCH_VERSION}") +endif () + ## Main targets add_library(nlohmann_json_schema_validator) add_library(nlohmann_json_schema_validator::validator ALIAS nlohmann_json_schema_validator)