aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-05-27 11:50:58 +0000
committerPierre Ossman <ossman@cendio.se>2011-05-27 11:50:58 +0000
commit32c88c4b0261662da7005d271ebe7a02e936146f (patch)
tree2ae48255d9d665144b372b462133224e2c1efdd3 /CMakeLists.txt
parent689c45814dc9f954f8d8d36444203231d0803739 (diff)
downloadtigervnc-32c88c4b0261662da7005d271ebe7a02e936146f.tar.gz
tigervnc-32c88c4b0261662da7005d271ebe7a02e936146f.zip
Make use of GnuTLS an explicit choice to avoid surprises if it gets included
or not. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4455 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f3cb208c..2c25fb1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -208,8 +208,10 @@ if(BUILD_NEW_VNCVIEWER)
endif()
# Check for GNUTLS library
-find_package(GnuTLS)
-if(GNUTLS_FOUND)
+option(ENABLE_GNUTLS "Enable protocol encryption and advanced authentication")
+if(ENABLE_GNUTLS)
+ find_package(GnuTLS REQUIRED)
+
include_directories(${GNUTLS_INCLUDE_DIR})
add_definitions("-DHAVE_GNUTLS")
add_definitions(${GNUTLS_DEFINITIONS})