Skip to content

Commit

Permalink
src/CMakeLists.txt: fix static build with openssl
Browse files Browse the repository at this point in the history
zhaojh329/rtty@225218e

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Mar 30, 2020
1 parent 94ee0ff commit 8e4a6f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ set(UWSC_HAVE_MBEDTLS_CONFIG 0)
if(NOT UWSC_SSL_SUPPORT)
set(UWSC_SSL_SUPPORT_CONFIG 0)
else()
find_package(OpenSSL)
find_package(PkgConfig QUIET)
pkg_check_modules(OPENSSL QUIET openssl)
if (NOT OPENSSL_FOUND)
find_package(OpenSSL)
endif()
find_package(WolfSSL)
find_package(MbedTLS)

Expand Down

0 comments on commit 8e4a6f0

Please sign in to comment.