vcpkg/ports/openssl/windows/vcpkg-cmake-wrapper.cmake
2020-11-03 22:59:02 -08:00

11 lines
419 B
CMake

_find_package(${ARGS})
if(OPENSSL_FOUND)
list(APPEND OPENSSL_LIBRARIES Crypt32.lib ws2_32.lib)
if(TARGET OpenSSL::Crypto)
set_property(TARGET OpenSSL::Crypto APPEND PROPERTY INTERFACE_LINK_LIBRARIES "Crypt32.lib;ws2_32.lib")
endif()
if(TARGET OpenSSL::SSL)
set_property(TARGET OpenSSL::SSL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "Crypt32.lib;ws2_32.lib")
endif()
endif()