Skip to content

Commit

Permalink
[openssl] added support for platforms without libdl (#3368)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexej Harm authored and ras0219-msft committed Apr 28, 2018
1 parent 039abe2 commit 38d139c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ports/openssl/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
_find_package(${ARGS})
if(OPENSSL_FOUND)
list(APPEND OPENSSL_LIBRARIES "dl")
if(TARGET OpenSSL::Crypto)
set_property(TARGET OpenSSL::Crypto APPEND PROPERTY INTERFACE_LINK_LIBRARIES "dl")
find_library(OPENSSL_DL_LIBRARY NAMES dl)
if(OPENSSL_DL_LIBRARY)
list(APPEND OPENSSL_LIBRARIES "dl")
if(TARGET OpenSSL::Crypto)
set_property(TARGET OpenSSL::Crypto APPEND PROPERTY INTERFACE_LINK_LIBRARIES "dl")
endif()
endif()
endif()

0 comments on commit 38d139c

Please sign in to comment.