Browse Source

CMake: add a LIBVNCSERVER_HAVE_GNUTLS #define

pull/3/head
Christian Beier 4 years ago
parent
commit
1781ecda34
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8
  1. 4
      CMakeLists.txt
  2. 3
      rfb/rfbconfig.h.cmakein

4
CMakeLists.txt

@ -232,6 +232,10 @@ if(WITH_GCRYPT AND LIBGCRYPT_LIBRARIES)
set(ADDITIONAL_LIBS ${ADDITIONAL_LIBS} ${LIBGCRYPT_LIBRARIES})
endif(WITH_GCRYPT AND LIBGCRYPT_LIBRARIES)
if(GNUTLS_FOUND)
set(LIBVNCSERVER_HAVE_GNUTLS 1)
endif(GNUTLS_FOUND)
if(OPENSSL_FOUND)
set(LIBVNCSERVER_HAVE_LIBSSL 1)
endif(OPENSSL_FOUND)

3
rfb/rfbconfig.h.cmakein

@ -142,6 +142,9 @@
/* Define to 1 if libgcrypt is present */
#cmakedefine LIBVNCSERVER_WITH_CLIENT_GCRYPT 1
/* Define to 1 if GnuTLS is present */
#cmakedefine LIBVNCSERVER_HAVE_GNUTLS 1
/* Define to 1 if OpenSSL is present */
#cmakedefine LIBVNCSERVER_HAVE_LIBSSL 1

Loading…
Cancel
Save