mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[openssl] Add -ldl to the link line when appropriate
This commit is contained in:
parent
d2f69445b6
commit
c400cea91d
@ -1,3 +1,3 @@
|
||||
Source: openssl
|
||||
Version: 1.0.2o-1
|
||||
Version: 1.0.2o-2
|
||||
Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
|
||||
|
@ -31,3 +31,7 @@ endforeach()
|
||||
|
||||
file(INSTALL ${RESOLVED_HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include/openssl)
|
||||
file(INSTALL ${MASTER_COPY_SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openssl RENAME copyright)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/openssl)
|
||||
endif()
|
||||
|
7
ports/openssl/vcpkg-cmake-wrapper.cmake
Normal file
7
ports/openssl/vcpkg-cmake-wrapper.cmake
Normal file
@ -0,0 +1,7 @@
|
||||
_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")
|
||||
endif()
|
||||
endif()
|
Loading…
x
Reference in New Issue
Block a user