Skip to content

Commit

Permalink
🔧 [CMake] Fix OpenSSL version on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed May 6, 2024
1 parent 5aa6290 commit 8566e43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ set(COOLLAB_REQUIRE_ALL_FEATURES OFF CACHE BOOL "Some features are optional, lik
# Set the path to OpenSSL library directory
set(OPENSSL_USE_STATIC_LIBS TRUE)

find_package(OpenSSL 3)
if(APPLE)
find_package(OpenSSL 3.2) # Otherwise finds 3.3 which isn't compatible with cpp-httplib
else()
find_package(OpenSSL 3)
endif()

if(NOT OpenSSL_FOUND)
if(COOLLAB_REQUIRE_ALL_FEATURES)
Expand Down

0 comments on commit 8566e43

Please sign in to comment.