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)