Skip to content

Commit 2f8323a

Browse files
authored
chore(cmake): disable libcurl tests targets (#254)
Resolves #253
1 parent 897e86d commit 2f8323a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cmake/deps/curl.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include(FetchContent)
44
SET(BUILD_CURL_EXE OFF CACHE BOOL "" FORCE)
55
set(BUILD_LIBCURL_DOCS OFF CACHE BOOL "" FORCE)
66
set(BUILD_MISC_DOCS OFF CACHE BOOL "" FORCE)
7+
set(CURL_DISABLE_TESTS ON CACHE BOOL "" FORCE)
78

89
# Disable all protocols except HTTP
910
SET(HTTP_ONLY ON CACHE BOOL "" FORCE)
@@ -31,6 +32,8 @@ FetchContent_Declare(
3132
URL "https://github.com/curl/curl/releases/download/curl-8_8_0/curl-8.8.0.tar.gz"
3233
URL_MD5 "2300048f61e6196678281a8612a873ef"
3334
FIND_PACKAGE_ARGS NAMES CURL
35+
EXCLUDE_FROM_ALL
36+
SYSTEM
3437
)
3538

3639
FetchContent_MakeAvailable(CURL)

cmake/deps/json.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ FetchContent_Declare(nlohmann_json
77
URL https://github.com/nlohmann/json/archive/refs/tags/v3.12.0.tar.gz
88
URL_HASH SHA256=4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187
99
FIND_PACKAGE_ARGS NAMES nlohmann_json
10+
EXCLUDE_FROM_ALL
11+
SYSTEM
1012
)
1113

1214
FetchContent_MakeAvailable(nlohmann_json)

0 commit comments

Comments
 (0)