externals: always use LibreSSL on Windows

merge-requests/60/head
Liam 2022-11-23 10:24:25 +07:00
parent 168c9ee341
commit cdb2e4eaff
1 changed files with 8 additions and 4 deletions

@ -92,10 +92,14 @@ endif()
add_subdirectory(sirit) add_subdirectory(sirit)
if (ENABLE_WEB_SERVICE) if (ENABLE_WEB_SERVICE)
if (NOT WIN32)
find_package(OpenSSL 1.1) find_package(OpenSSL 1.1)
if (OPENSSL_FOUND) if (OPENSSL_FOUND)
set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto) set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
else() 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/")