Do not look for gnutls if libjwt is not found

This commit is contained in:
hax0kartik 2020-04-14 00:40:47 +05:30 committed by Isaac Connor
parent bc9137bd93
commit 32c137bb8e
1 changed files with 17 additions and 15 deletions

View File

@ -359,6 +359,7 @@ else(LIBJWT_FOUND)
endif(LIBJWT_FOUND)
# gnutls (using find_library and find_path)
if(HAVE_LIBJWT)
find_library(GNUTLS_LIBRARIES gnutls)
if(GNUTLS_LIBRARIES)
set(HAVE_LIBGNUTLS 1)
@ -374,6 +375,7 @@ if(GNUTLS_LIBRARIES)
else(GNUTLS_LIBRARIES)
set(optlibsnotfound "${optlibsnotfound} GnuTLS")
endif(GNUTLS_LIBRARIES)
endif(HAVE_LIBJWT)
# OpenSSL
if(NOT HAVE_LIBGNUTLS OR NOT HAVE_LIBJWT)