Skip to content

Commit

Permalink
fix: update json version to 3.10.1 (#169)
Browse files Browse the repository at this point in the history
Signed-off-by: stonex <1479765922@qq.com>
  • Loading branch information
sheny1xuan authored Nov 18, 2021
1 parent 367254b commit 7a28a0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/modules/FindExtPackages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set(CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY ON CACHE BOOL
###############################################################################
### Packages and versions ###

find_package(json 3.7.3 REQUIRED)
find_package(json 3.10.1 REQUIRED)

if(CASBIN_BUILD_TEST)
# googletest
Expand Down
3 changes: 2 additions & 1 deletion cmake/modules/Findjson.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ include(FetchContent)

FetchContent_Declare(json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.7.3)
GIT_TAG v3.10.1)

set(JSON_BuildTests OFF CACHE INTERNAL "")
set(JSON_Install ON)
FetchContent_GetProperties(json)
FetchContent_MakeAvailable(json)

Expand Down

0 comments on commit 7a28a0f

Please sign in to comment.