Skip to content

Commit 9b66075

Browse files
committed
Define OPENSSL_NO_SSL3_METHOD
Fixes build failure and SSL 3 is deprecated and unsecure
1 parent e466556 commit 9b66075

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ include(FetchContent)
1919

2020
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/whoshuu/cpr.git GIT_TAG 1.5.2)
2121
set(BUILD_SHARED_LIBS OFF CACHE BOOL "")
22+
set(BUILD_CPR_TESTS OFF CACHE BOOL "")
23+
add_compile_definitions(OPENSSL_NO_SSL3_METHOD)
2224
FetchContent_MakeAvailable(cpr)
2325

2426
FetchContent_Declare(json GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git GIT_TAG v3.9.1)

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ executable(
1717
subproject('cpr').get_variable('cpr_dep'),
1818
dependency('nlohmann_json'),
1919
dependency('simdjson')
20-
]
20+
],
21+
cpp_args: '-DOPENSSL_NO_SSL3_METHOD'
2122
)

0 commit comments

Comments
 (0)