mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-17 16:27:44 +00:00
Don't use static OpenSSL on Linux by default.
This commit is contained in:
parent
3a7e8647bb
commit
30791de5bc
1 changed files with 7 additions and 6 deletions
|
@ -1,7 +1,12 @@
|
||||||
if (WITH_TLS)
|
if (WITH_TLS)
|
||||||
set(OPENSSL_ROOT_DIR ${XMRIG_DEPS})
|
set(OPENSSL_ROOT_DIR ${XMRIG_DEPS})
|
||||||
set(OPENSSL_USE_STATIC_LIBS TRUE)
|
|
||||||
set(OPENSSL_MSVC_STATIC_RT TRUE)
|
if (WIN32)
|
||||||
|
set(OPENSSL_USE_STATIC_LIBS TRUE)
|
||||||
|
set(OPENSSL_MSVC_STATIC_RT TRUE)
|
||||||
|
|
||||||
|
set(EXTRA_LIBS ${EXTRA_LIBS} Crypt32)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(OpenSSL)
|
find_package(OpenSSL)
|
||||||
|
|
||||||
|
@ -11,10 +16,6 @@ if (WITH_TLS)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "OpenSSL NOT found: use `-DWITH_TLS=OFF` to build without TLS support")
|
message(FATAL_ERROR "OpenSSL NOT found: use `-DWITH_TLS=OFF` to build without TLS support")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
set(EXTRA_LIBS ${EXTRA_LIBS} Crypt32)
|
|
||||||
endif()
|
|
||||||
else()
|
else()
|
||||||
set(TLS_SOURCES "")
|
set(TLS_SOURCES "")
|
||||||
set(OPENSSL_LIBRARIES "")
|
set(OPENSSL_LIBRARIES "")
|
||||||
|
|
Loading…
Reference in a new issue