mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-20 17:58:18 +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:
parent
d9f7c41d8b
commit
e069c38a15
1 changed files with 1 additions and 0 deletions
|
|
@ -24,4 +24,5 @@ find_package(OpenSSL 1.1 REQUIRED)
|
||||||
# Bug in FindOpenSSL. Win needs to link to these if static libs are used.
|
# Bug in FindOpenSSL. Win needs to link to these if static libs are used.
|
||||||
if (WIN32 AND OPENSSL_USE_STATIC_LIBS)
|
if (WIN32 AND OPENSSL_USE_STATIC_LIBS)
|
||||||
set (OPENSSL_CRYPTO_LIBRARY "${OPENSSL_CRYPTO_LIBRARY};Crypt32;ws2_32")
|
set (OPENSSL_CRYPTO_LIBRARY "${OPENSSL_CRYPTO_LIBRARY};Crypt32;ws2_32")
|
||||||
|
target_link_libraries(OpenSSL::Crypto INTERFACE "Crypt32;ws2_32")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue