From 7f322bfe7e3cccaa104c494b6714bace8b110ca0 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 31 Jul 2016 17:11:19 -0500 Subject: set link library dependencies with MSVC, fixes #221 --- crypto/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crypto') diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 2eca0b9..0349e73 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -752,6 +752,9 @@ if (BUILD_SHARED) add_library(crypto-objects OBJECT ${CRYPTO_SRC}) add_library(crypto STATIC $) add_library(crypto-shared SHARED $) + if (MSVC) + target_link_libraries(crypto-shared crypto Ws2_32.lib) + endif() set_target_properties(crypto-shared PROPERTIES OUTPUT_NAME crypto) set_target_properties(crypto-shared PROPERTIES VERSION ${CRYPTO_VERSION} SOVERSION ${CRYPTO_MAJOR_VERSION}) -- cgit v1.2.3-55-g6feb