Skip to content

Commit 7a28a0f

Browse files
authored
fix: update json version to 3.10.1 (#169)
Signed-off-by: stonex <[email protected]>
1 parent 367254b commit 7a28a0f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmake/modules/FindExtPackages.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set(CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY ON CACHE BOOL
2424
###############################################################################
2525
### Packages and versions ###
2626

27-
find_package(json 3.7.3 REQUIRED)
27+
find_package(json 3.10.1 REQUIRED)
2828

2929
if(CASBIN_BUILD_TEST)
3030
# googletest

cmake/modules/Findjson.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ include(FetchContent)
1616

1717
FetchContent_Declare(json
1818
GIT_REPOSITORY https://github.com/nlohmann/json.git
19-
GIT_TAG v3.7.3)
19+
GIT_TAG v3.10.1)
2020

2121
set(JSON_BuildTests OFF CACHE INTERNAL "")
22+
set(JSON_Install ON)
2223
FetchContent_GetProperties(json)
2324
FetchContent_MakeAvailable(json)
2425

0 commit comments

Comments
 (0)