diff options
author | Christian Beier <dontmind@freeshell.org> | 2018-06-29 12:46:53 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2018-06-29 12:46:53 +0200 |
commit | a2ebdf46cc0048bca127d31882523fa4b0fa5762 (patch) | |
tree | 8f29405db49eed74e5de9f139c09efc6ac890d19 | |
parent | 49f1d8de47179087c8e83da9e76d3cc03a7488c4 (diff) | |
download | libtdevnc-a2ebdf46cc0048bca127d31882523fa4b0fa5762.tar.gz libtdevnc-a2ebdf46cc0048bca127d31882523fa4b0fa5762.zip |
CMake: declare that websockets depend on crypto
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 26c686a..b9f3044 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,10 +218,11 @@ if(LIBVNCSERVER_HAVE_SYS_UIO_H) message(STATUS "Building crypto with builtin functions") set(CRYPTO_SOURCES ${COMMON_DIR}/rfbcrypto_included.c ${COMMON_DIR}/md5.c ${COMMON_DIR}/sha1.c) endif() + set(LIBVNCSERVER_HAVE_CRYPTO 1) endif(LIBVNCSERVER_HAVE_SYS_UIO_H) -if(WITH_WEBSOCKETS) +if(WITH_WEBSOCKETS AND LIBVNCSERVER_HAVE_CRYPTO) set(LIBVNCSERVER_WITH_WEBSOCKETS 1) if(GNUTLS_FOUND) message(STATUS "Building websockets with GnuTLS") @@ -237,7 +238,7 @@ if(WITH_WEBSOCKETS) set(WEBSOCKET_LIBRARIES) set(WSSRCS ${LIBVNCSERVER_DIR}/rfbssl_none.c) endif() -endif(WITH_WEBSOCKETS) +endif(WITH_WEBSOCKETS AND LIBVNCSERVER_HAVE_CRYPTO) if(WITH_GCRYPT AND LIBGCRYPT_LIBRARIES) message(STATUS "Found libgcrypt: ${LIBGCRYPT_LIBRARIES}") |