add message in CI for nlohmann_json + tweak readme

This commit is contained in:
Thomas Vincent 2021-12-10 11:47:46 -05:00
parent 20d89af0ec
commit 9865c7ee4d
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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: