From faac564164633d72f1d4f6d06cce948a4bc14c28 Mon Sep 17 00:00:00 2001 From: Nikola Maruszewski <76668284+egelja@users.noreply.github.com> Date: Tue, 25 Jul 2023 12:03:16 -0500 Subject: [PATCH] build: fix curl OpenSSL config --- 3rd-party/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/3rd-party/CMakeLists.txt b/3rd-party/CMakeLists.txt index 48204b1..9a5093a 100644 --- a/3rd-party/CMakeLists.txt +++ b/3rd-party/CMakeLists.txt @@ -17,9 +17,14 @@ block() set(ENABLE_DEBUG ON) endif() - # Use SChannel on Win32 + # SSL Config if(WIN32) + # Use SChannel on Win32 set(CURL_USE_SCHANNEL ON) + else() + # Fix curl build with OpenSSL + find_package(OpenSSL REQUIRED) + add_library(openssl::openssl ALIAS openssl::SSL) endif() # Turn on Websockets