mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 16:22:47 +01:00
externals: always use LibreSSL on Windows
This commit is contained in:
parent
168c9ee341
commit
cdb2e4eaff
1 changed files with 8 additions and 4 deletions
12
externals/CMakeLists.txt
vendored
12
externals/CMakeLists.txt
vendored
|
@ -92,10 +92,14 @@ endif()
|
||||||
add_subdirectory(sirit)
|
add_subdirectory(sirit)
|
||||||
|
|
||||||
if (ENABLE_WEB_SERVICE)
|
if (ENABLE_WEB_SERVICE)
|
||||||
find_package(OpenSSL 1.1)
|
if (NOT WIN32)
|
||||||
if (OPENSSL_FOUND)
|
find_package(OpenSSL 1.1)
|
||||||
set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
|
if (OPENSSL_FOUND)
|
||||||
else()
|
set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (WIN32 OR NOT OPENSSL_FOUND)
|
||||||
# LibreSSL
|
# LibreSSL
|
||||||
set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "")
|
set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "")
|
||||||
set(OPENSSLDIR "/etc/ssl/")
|
set(OPENSSLDIR "/etc/ssl/")
|
||||||
|
|
Loading…
Reference in a new issue