diff --git a/CMakeLists.txt b/CMakeLists.txt index 00d7793f..25472dfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)