Use static OpenSSL libs on macOS.
This commit is contained in:
parent
ca77fda511
commit
fb28b931cc
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ if (WITH_TLS)
|
||||||
set(OPENSSL_MSVC_STATIC_RT TRUE)
|
set(OPENSSL_MSVC_STATIC_RT TRUE)
|
||||||
|
|
||||||
set(EXTRA_LIBS ${EXTRA_LIBS} Crypt32)
|
set(EXTRA_LIBS ${EXTRA_LIBS} Crypt32)
|
||||||
|
elseif (APPLE)
|
||||||
|
set(OPENSSL_USE_STATIC_LIBS TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(OpenSSL)
|
find_package(OpenSSL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue