CMake: set LIBVNCSERVER_HAVE_LIBSSL in rfbconfig.h if OpenSSL found

pull/3/head
Christian Beier 6 years ago
parent 6d4bb07ea6
commit 2197b415f2
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8
  1. 3
      CMakeLists.txt
  2. 3
      rfb/rfbconfig.h.cmake

@ -225,6 +225,9 @@ if(WITH_GCRYPT AND LIBGCRYPT_LIBRARIES)
set(ADDITIONAL_LIBS ${ADDITIONAL_LIBS} ${LIBGCRYPT_LIBRARIES})
endif(WITH_GCRYPT AND LIBGCRYPT_LIBRARIES)
if(OPENSSL_FOUND)
set(LIBVNCSERVER_HAVE_LIBSSL 1)
endif(OPENSSL_FOUND)
if(WITH_IPv6)
if(WIN32 AND LIBVNCSERVER_HAVE_WS2TCPIP_H AND LIBVNCSERVER_HAVE_VPRINTF)

@ -100,6 +100,9 @@
/* Define to 1 if GnuTLS is present */
#cmakedefine LIBVNCSERVER_WITH_CLIENT_TLS 1
/* Define to 1 if OpenSSL is present */
#cmakedefine LIBVNCSERVER_HAVE_LIBSSL 1
/* Define to 1 to build with websockets */
#cmakedefine LIBVNCSERVER_WITH_WEBSOCKETS 1

Loading…
Cancel
Save