Fix conditionals for when to look for openssl

This commit is contained in:
hax0kartik 2020-03-03 09:16:24 -08:00
parent c048590b49
commit 1dd8a71b52
1 changed files with 2 additions and 2 deletions

View File

@ -381,7 +381,7 @@ else(GNUTLS_LIBRARIES)
endif(GNUTLS_LIBRARIES)
# OpenSSL
if(NOT HAVE_LIBGNUTLS AND NOT HAVE_LIBGNUTLS_OPENSSL AND NOT HAVE_LIBJWT)
if(NOT HAVE_LIBGNUTLS OR (NOT HAVE_LIBGNUTLS_OPENSSL) OR (NOT HAVE_LIBJWT))
find_package(OpenSSL)
if(OPENSSL_FOUND)
set(HAVE_LIBOPENSSL 1)
@ -394,7 +394,7 @@ if(NOT HAVE_LIBGNUTLS AND NOT HAVE_LIBGNUTLS_OPENSSL AND NOT HAVE_LIBJWT)
else(OPENSSL_FOUND)
set(optlibsnotfound "${optlibsnotfound} OpenSSL")
endif(OPENSSL_FOUND)
endif(NOT HAVE_LIBGNUTLS AND NOT HAVE_LIBGNUTLS_OPENSSL AND NOT HAVE_LIBJWT)
endif(NOT HAVE_LIBGNUTLS OR (NOT HAVE_LIBGNUTLS_OPENSSL) OR (NOT HAVE_LIBJWT))
# pthread (using find_library and find_path)
find_library(PTHREAD_LIBRARIES pthread)