summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-06-28 00:12:11 +0200
committerJulian Andres Klode <jak@debian.org>2017-06-28 15:52:38 +0200
commit0fe2161020d6e331639ed11872a947dd20035890 (patch)
tree876f3836313ee70230b21c781d700c77a482d8ac /CMakeLists.txt
parent2851ec6cf037d552118b885be0dd7796d74730c6 (diff)
Allow building without curl
This makes testing easier and prepares us for the transition.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f8ffb898..a0690923c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,10 +77,16 @@ endif()
# apt-transport-https dependencies
-find_package(CURL REQUIRED)
-if (CURL_FOUND)
- set(HAVE_CURL 1)
+option(WITH_CURL "Build curl-based methods" ON)
+if (WITH_CURL)
+ find_package(CURL REQUIRED)
+ if (CURL_FOUND)
+ set(HAVE_CURL 1)
+ endif()
+else()
+ set(HAVE_CURL 0)
endif()
+
find_package(GnuTLS REQUIRED)
if (GNUTLS_FOUND)
set(HAVE_GNUTLS 1)