Fix OpenSSL static link when BUILD_STATIC=ON is provided

This commit is contained in:
Alexandru Negrila
2020-04-09 09:09:21 +03:00
parent 4f6dd2cbb8
commit 7139d15cd0

View File

@@ -10,6 +10,11 @@ if (WITH_TLS)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()
if (BUILD_STATIC)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()
find_package(OpenSSL)
if (OPENSSL_FOUND)