diff --git a/CMakeLists.txt b/CMakeLists.txt index 449ec9c5322..2261ab448bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,7 +209,7 @@ elseif(UNIX) endif() if(WIN32 AND MSVC) - set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32) + set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32 crypt32) endif() # Create directory for generated .proto files diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index 7c6823b352d..b5b1ae30811 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -306,7 +306,7 @@ endif() if(WIN32 AND MSVC) - set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32) + set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32 crypt32) endif() # Create directory for generated .proto files