diff options
author | Remo E <remo.eichenberger@gmail.com> | 2016-07-21 11:28:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-10-10 19:47:31 +0200 |
commit | d522ff4690f373721e014dca676f8c73da428383 (patch) | |
tree | 2acfba202157b98a7e4b825b98066ebc6d8aa1c9 /CMakeLists.txt | |
parent | eb5199317ee729ab1893fc629a8f4f0ca7f7aa1e (diff) | |
download | curl-d522ff4690f373721e014dca676f8c73da428383.tar.gz |
cmake: add nghttp2 support
Closes #922
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
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) |