1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

cmake/OpenSSL.cmake: Need to tell cmake that the imported openssl targets need to link with Crytp32 and ws2_32 libraries.

This commit is contained in:
Henrik Hautakoski 2023-03-22 15:09:42 +01:00
parent d9f7c41d8b
commit e069c38a15

View file

@ -24,4 +24,5 @@ find_package(OpenSSL 1.1 REQUIRED)
# Bug in FindOpenSSL. Win needs to link to these if static libs are used.
if (WIN32 AND OPENSSL_USE_STATIC_LIBS)
set (OPENSSL_CRYPTO_LIBRARY "${OPENSSL_CRYPTO_LIBRARY};Crypt32;ws2_32")
target_link_libraries(OpenSSL::Crypto INTERFACE "Crypt32;ws2_32")
endif()