Skip to content

Commit 4491044

Browse files
committed
Update cmake in tests
1 parent c253f72 commit 4491044

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/cpp/accuracy/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ endif()
5454
include(CMakeParseArguments)
5555
include(FetchContent)
5656

57-
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz)
57+
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git
58+
GIT_TAG d41ca94fa85d5119852e2f7a3f94335cc7cb0486 # PR #4709, fixes cmake deprecation warnings
59+
)
5860
FetchContent_Declare(googletest
5961
GIT_REPOSITORY https://github.com/google/googletest.git
6062
GIT_TAG a7f443b80b105f940225332ed3c31f2790092f47 # latest main

tests/cpp/precommit/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ endif()
5353
include(CMakeParseArguments)
5454
include(FetchContent)
5555

56-
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz)
56+
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git
57+
GIT_TAG d41ca94fa85d5119852e2f7a3f94335cc7cb0486 # PR #4709, fixes cmake deprecation warnings
58+
)
5759
FetchContent_Declare(googletest
5860
GIT_REPOSITORY https://github.com/google/googletest.git
5961
GIT_TAG a7f443b80b105f940225332ed3c31f2790092f47 # latest main

0 commit comments

Comments
 (0)