Skip to content

Commit

Permalink
Define OPENSSL_NO_SSL3_METHOD
Browse files Browse the repository at this point in the history
Fixes build failure and SSL 3 is deprecated and unsecure
  • Loading branch information
Tachi107 committed Feb 26, 2021
1 parent e466556 commit 9b66075
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ include(FetchContent)

FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/whoshuu/cpr.git GIT_TAG 1.5.2)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "")
set(BUILD_CPR_TESTS OFF CACHE BOOL "")
add_compile_definitions(OPENSSL_NO_SSL3_METHOD)
FetchContent_MakeAvailable(cpr)

FetchContent_Declare(json GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git GIT_TAG v3.9.1)
Expand Down
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ executable(
subproject('cpr').get_variable('cpr_dep'),
dependency('nlohmann_json'),
dependency('simdjson')
]
],
cpp_args: '-DOPENSSL_NO_SSL3_METHOD'
)

0 comments on commit 9b66075

Please sign in to comment.