From 1dd8a71b52648b2600f08f1c83fc819a00ecc6ae Mon Sep 17 00:00:00 2001 From: hax0kartik Date: Tue, 3 Mar 2020 09:16:24 -0800 Subject: [PATCH] Fix conditionals for when to look for openssl --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e84f929d..93b023317 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)