From 8566e43f7bc5fc503125a1876b9e534c71080945 Mon Sep 17 00:00:00 2001 From: Jules Fouchy Date: Mon, 6 May 2024 13:56:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20[CMake]=20Fix=20OpenSSL=20versio?= =?UTF-8?q?n=20on=20MacOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)