Skip to content

Commit 4669cb1

Browse files
committed
Faster FetchContent
1 parent e006932 commit 4669cb1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

libjsonexpr/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ set(FETCHCONTENT_QUIET FALSE)
77

88
if (NOT JSONEXPR_USE_SYSTEM_JSON)
99
FetchContent_Declare(json
10-
GIT_REPOSITORY https://github.com/nlohmann/json.git
11-
GIT_TAG v3.11.3)
10+
URL https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.zip)
1211
FetchContent_MakeAvailable(json)
1312
endif()
1413
if (NOT JSONEXPR_USE_STD_EXPECTED AND NOT JSONEXPR_USE_SYSTEM_EXPECTED)
1514
set(EXPECTED_BUILD_TESTS OFF)
1615
set(EXPECTED_BUILD_PACKAGE_DEB OFF)
1716
FetchContent_Declare(expected
18-
GIT_REPOSITORY https://github.com/TartanLlama/expected.git
19-
GIT_TAG v1.1.0)
17+
URL https://github.com/TartanLlama/expected/archive/refs/tags/v1.1.0.zip)
2018
FetchContent_MakeAvailable(expected)
2119
endif()
2220

tests/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ set(FETCHCONTENT_QUIET FALSE)
77

88
set(SNITCH_DEFINE_MAIN OFF)
99
FetchContent_Declare(snitch
10-
GIT_REPOSITORY https://github.com/cschreib/snitch.git
11-
GIT_TAG v1.2.5)
10+
URL https://github.com/snitch-org/snitch/archive/refs/tags/v1.2.5.zip)
1211
FetchContent_MakeAvailable(snitch)
1312

1413
add_executable(jsonexpr_tests

0 commit comments

Comments
 (0)