-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openssl] added support for platforms without libdl (#3368)
- Loading branch information
1 parent
039abe2
commit 38d139c
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |