blob: 33ab694bb48041bcf6b87986cb1a8cc48d39e524 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- task-2.3.0/CMakeLists.txt
+++ task-2.3.0/CMakeLists.txt
@@ -9,6 +9,8 @@
project (task)
set (PROJECT_VERSION "2.3.0")
+OPTION(USE_GNUTLS "Build gnutls support." ON)
+
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set (LINUX true)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
@@ -59,13 +61,15 @@
set (PACKAGE_VERSION "${VERSION}")
set (PACKAGE_STRING "${PACKAGE} ${VERSION}")
-message ("-- Looking for GnuTLS")
-find_package (GnuTLS)
-if (GNUTLS_FOUND)
- set (HAVE_LIBGNUTLS true)
- set (TASK_INCLUDE_DIRS ${TASK_INCLUDE_DIRS} ${GNUTLS_INCLUDE_DIR})
- set (TASK_LIBRARIES ${TASK_LIBRARIES} ${GNUTLS_LIBRARIES})
-endif (GNUTLS_FOUND)
+if (USE_GNUTLS)
+ message ("-- Looking for GnuTLS")
+ find_package (GnuTLS)
+ if (GNUTLS_FOUND)
+ set (HAVE_LIBGNUTLS true)
+ set (TASK_INCLUDE_DIRS ${TASK_INCLUDE_DIRS} ${GNUTLS_INCLUDE_DIR})
+ set (TASK_LIBRARIES ${TASK_LIBRARIES} ${GNUTLS_LIBRARIES})
+ endif (GNUTLS_FOUND)
+endif (USE_GNUTLS)
#message ("-- Looking for pthread")
#find_path (PTHREAD_INCLUDE_DIR pthread.h)
|