From 968f6c69c3a0c67bb1ca6fa4d9144b69410b181c Mon Sep 17 00:00:00 2001 From: Lidaofu <746101210@qq.com> Date: Sun, 19 May 2024 10:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DWindows=E4=B8=8B=E9=93=BE?= =?UTF-8?q?=E6=8E=A5OpenSSL=E9=9D=99=E6=80=81=E5=BA=93=E7=BC=BA=E5=B0=91Cr?= =?UTF-8?q?ypt32=E5=BA=93=E7=9A=84=E9=97=AE=E9=A2=98=20=20(#3552)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李道甫 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd0124a9..44e03587 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -403,6 +403,8 @@ if(OPENSSL_FOUND AND ENABLE_OPENSSL) update_cached_list(MK_LINK_LIBRARIES ${OPENSSL_LIBRARIES}) if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND OPENSSL_USE_STATIC_LIBS) update_cached_list(MK_LINK_LIBRARIES ${CMAKE_DL_LIBS}) + elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND OPENSSL_USE_STATIC_LIBS) + update_cached_list(MK_LINK_LIBRARIES Crypt32) endif() else() set(ENABLE_OPENSSL OFF)