From 9865c7ee4dd0ae7753c88462936e14946bb3f322 Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Fri, 10 Dec 2021 11:47:46 -0500 Subject: [PATCH] add message in CI for nlohmann_json + tweak readme --- CMakeLists.txt | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 258481f..fcb9d1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ include(FetchContent) # find nlohmann_json if not found simply fetch it find_package(nlohmann_json QUIET) if(NOT nlohmann_json_FOUND) + message(STATUS "nlohmann_json NOT FOUND, fetching version v3.10.4") FetchContent_Declare(json GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent GIT_TAG v3.10.4) diff --git a/README.md b/README.md index 627073c..e60437c 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ cmake [..] -DBUILD_SHARED_LIBS=ON [..] In your initial call to cmake simply add: ```bash -cmake [..] -JSON_VALIDATOR_BUILD_EXAMPLES=ON [..] +cmake [..] -DJSON_VALIDATOR_BUILD_EXAMPLES=ON [..] ``` Run examples with: @@ -149,7 +149,7 @@ Run examples with: In your initial call to cmake simply add: ```bash -cmake [..] -JSON_VALIDATOR_BUILD_TESTS=ON [..] +cmake [..] -DJSON_VALIDATOR_BUILD_TESTS=ON [..] ``` Once build run tests with: