aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRemo E <remo.eichenberger@gmail.com>2016-07-21 11:28:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-10-10 19:47:31 +0200
commitd522ff4690f373721e014dca676f8c73da428383 (patch)
tree2acfba202157b98a7e4b825b98066ebc6d8aa1c9 /CMakeLists.txt
parenteb5199317ee729ab1893fc629a8f4f0ca7f7aa1e (diff)
cmake: add nghttp2 support
Closes #922
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7da33331b..6d19cb7aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -332,6 +332,13 @@ if(CMAKE_USE_OPENSSL)
endif()
endif()
+option(USE_NGHTTP2 "Use Nghttp2 library" OFF)
+if(USE_NGHTTP2)
+ find_package(NGHTTP2 REQUIRED)
+ include_directories(${NGHTTP2_INCLUDE_DIRS})
+ list(APPEND CURL_LIBS ${NGHTTP2_LIBRARIES})
+endif()
+
if(NOT CURL_DISABLE_LDAP)
if(WIN32)
option(USE_WIN32_LDAP "Use Windows LDAP implementation" ON)