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)