summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2018-07-08 20:53:43 +0200
committerChristian Beier <dontmind@freeshell.org>2018-07-08 20:53:43 +0200
commit1781ecda341fb06fd414a4d84bb363b070958ea4 (patch)
tree7896cec72911bcb4bf8e46fbff046e6f09e4c181
parente775aec64e75d5b3e5580ab2f0a860efe9ce4d1b (diff)
downloadlibtdevnc-1781ecda341fb06fd414a4d84bb363b070958ea4.tar.gz
libtdevnc-1781ecda341fb06fd414a4d84bb363b070958ea4.zip
CMake: add a LIBVNCSERVER_HAVE_GNUTLS #define
-rw-r--r--CMakeLists.txt4
-rw-r--r--rfb/rfbconfig.h.cmakein3
2 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8097158..995cbc7 100644
--- a/CMakeLists.txt
+++ b/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)
diff --git a/rfb/rfbconfig.h.cmakein b/rfb/rfbconfig.h.cmakein
index 613149a..2d165c5 100644
--- a/rfb/rfbconfig.h.cmakein
+++ b/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