Apply knnniggett's solution on gnutls-openssl issue which

adds support for RPM based distros.
This commit is contained in:
Cosme Domínguez Díaz 2014-11-12 22:39:54 +01:00
parent 964cdde2b3
commit bcbb0c56a6
1 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,10 @@ endif(GCRYPT_LIBRARIES)
# gnutls (using find_library and find_path)
find_library(GNUTLS_LIBRARIES gnutls-openssl)
if(NOT GNUTLS_LIBRARIES)
find_library(GNUTLS_LIBRARIES gnutls)
endif(NOT GNUTLS_LIBRARIES)
if(GNUTLS_LIBRARIES)
set(HAVE_LIBGNUTLS 1)
list(APPEND ZM_BIN_LIBS "${GNUTLS_LIBRARIES}")