1
0
Fork 0
forked from suyu/suyu

Merge pull request #9302 from liamwhite/why-are-we-still-using-ado

externals: always use LibreSSL on Windows
This commit is contained in:
bunnei 2022-11-25 00:39:16 -08:00 committed by GitHub
commit 2572b0a5ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/")