Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake-modules/add_nlohmann_json.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

# Storage requires 3.6.0 version for using `contains` feature
Comment thread
vhvb1989 marked this conversation as resolved.
Outdated
# Using QUIET to avoid warning message if lib is not found
find_package(nlohmann_json 3.6.0 EXACT QUIET)
find_package(nlohmann_json 3.6.0 QUIET)
Comment thread
vhvb1989 marked this conversation as resolved.
Outdated
if (NOT nlohmann_json_FOUND)

include(FetchContent)

# release code only. This save us from getting the entire nlohmann source code.
FetchContent_Declare(json
GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent
GIT_TAG v3.8.0)
GIT_TAG v3.6.0)
Comment thread
vhvb1989 marked this conversation as resolved.
Outdated

FetchContent_GetProperties(json)
if (NOT json_POPULATED)
Expand Down