fix static builds of examples and tools on windows
This commit is contained in:
parent
d67d6c635f
commit
ade8ed3dd8
|
@ -633,6 +633,12 @@ set_package_properties(OpenSSL
|
|||
)
|
||||
|
||||
if(OPENSSL_FOUND)
|
||||
|
||||
# TODO: needed until https://gitlab.kitware.com/cmake/cmake/issues/19263 is fixed
|
||||
if(WIN32 AND OPENSSL_USE_STATIC_LIBS)
|
||||
target_link_libraries(OpenSSL::Crypto INTERFACE crypt32)
|
||||
endif()
|
||||
|
||||
target_link_libraries(torrent-rasterbar PUBLIC OpenSSL::SSL)
|
||||
target_compile_definitions(torrent-rasterbar PUBLIC TORRENT_USE_OPENSSL)
|
||||
target_sources(torrent-rasterbar PRIVATE src/pe_crypto)
|
||||
|
|
Loading…
Reference in New Issue