]> source.dussan.org Git - tigervnc.git/commitdiff
Make use of GnuTLS an explicit choice to avoid surprises if it gets included
authorPierre Ossman <ossman@cendio.se>
Fri, 27 May 2011 11:50:58 +0000 (11:50 +0000)
committerPierre Ossman <ossman@cendio.se>
Fri, 27 May 2011 11:50:58 +0000 (11:50 +0000)
or not.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4455 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt

index f3cb208cdbf00a81957f2d9adb379b41bba6125a..2c25fb1cf1515053fd2af47972553c15358b3041 100644 (file)
@@ -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})