Fix conditionals for when to look for openssl
This commit is contained in:
parent
c048590b49
commit
1dd8a71b52
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue