Do not look for gnutls if libjwt is not found
This commit is contained in:
parent
bc9137bd93
commit
32c137bb8e
|
@ -359,21 +359,23 @@ else(LIBJWT_FOUND)
|
||||||
endif(LIBJWT_FOUND)
|
endif(LIBJWT_FOUND)
|
||||||
|
|
||||||
# gnutls (using find_library and find_path)
|
# gnutls (using find_library and find_path)
|
||||||
find_library(GNUTLS_LIBRARIES gnutls)
|
if(HAVE_LIBJWT)
|
||||||
if(GNUTLS_LIBRARIES)
|
find_library(GNUTLS_LIBRARIES gnutls)
|
||||||
set(HAVE_LIBGNUTLS 1)
|
if(GNUTLS_LIBRARIES)
|
||||||
list(APPEND ZM_BIN_LIBS "${GNUTLS_LIBRARIES}")
|
set(HAVE_LIBGNUTLS 1)
|
||||||
find_path(GNUTLS_INCLUDE_DIR gnutls/gnutls.h)
|
list(APPEND ZM_BIN_LIBS "${GNUTLS_LIBRARIES}")
|
||||||
if(GNUTLS_INCLUDE_DIR)
|
find_path(GNUTLS_INCLUDE_DIR gnutls/gnutls.h)
|
||||||
include_directories("${GNUTLS_INCLUDE_DIR}")
|
if(GNUTLS_INCLUDE_DIR)
|
||||||
set(CMAKE_REQUIRED_INCLUDES "${GNUTLS_INCLUDE_DIR}")
|
include_directories("${GNUTLS_INCLUDE_DIR}")
|
||||||
endif(GNUTLS_INCLUDE_DIR)
|
set(CMAKE_REQUIRED_INCLUDES "${GNUTLS_INCLUDE_DIR}")
|
||||||
mark_as_advanced(FORCE GNUTLS_LIBRARIES GNUTLS_INCLUDE_DIR)
|
endif(GNUTLS_INCLUDE_DIR)
|
||||||
check_include_file("gnutls/gnutls.h" HAVE_GNUTLS_GNUTLS_H)
|
mark_as_advanced(FORCE GNUTLS_LIBRARIES GNUTLS_INCLUDE_DIR)
|
||||||
set(optlibsfound "${optlibsfound} GnuTLS")
|
check_include_file("gnutls/gnutls.h" HAVE_GNUTLS_GNUTLS_H)
|
||||||
else(GNUTLS_LIBRARIES)
|
set(optlibsfound "${optlibsfound} GnuTLS")
|
||||||
set(optlibsnotfound "${optlibsnotfound} GnuTLS")
|
else(GNUTLS_LIBRARIES)
|
||||||
endif(GNUTLS_LIBRARIES)
|
set(optlibsnotfound "${optlibsnotfound} GnuTLS")
|
||||||
|
endif(GNUTLS_LIBRARIES)
|
||||||
|
endif(HAVE_LIBJWT)
|
||||||
|
|
||||||
# OpenSSL
|
# OpenSSL
|
||||||
if(NOT HAVE_LIBGNUTLS OR NOT HAVE_LIBJWT)
|
if(NOT HAVE_LIBGNUTLS OR NOT HAVE_LIBJWT)
|
||||||
|
|
Loading…
Reference in New Issue