From 02dd24a9289c32808696c4cde7aa37d2255f42d4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 1 Apr 2020 14:43:56 -0400 Subject: curl: Enable HTTP/2 support by using nghttp2 --- Help/release/dev/curl-http2.rst | 8 ++++++++ Utilities/cmcurl/CMakeLists.txt | 1 + 2 files changed, 9 insertions(+) create mode 100644 Help/release/dev/curl-http2.rst diff --git a/Help/release/dev/curl-http2.rst b/Help/release/dev/curl-http2.rst new file mode 100644 index 0000000..8390a42 --- /dev/null +++ b/Help/release/dev/curl-http2.rst @@ -0,0 +1,8 @@ +curl-http2 +---------- + +* When building CMake itself from source and not using a system-provided + libcurl, HTTP/2 support is now enabled for commands supporting + network communication via ``http(s)``, such as :command:`file(DOWNLOAD)`, + :command:`file(UPLOAD)`, and :command:`ctest_submit`. + The precompiled binaries provided on ``cmake.org`` now support HTTP/2. diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index 5c732ef..c90e768 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -38,6 +38,7 @@ set(ENABLE_THREADED_RESOLVER OFF CACHE INTERNAL "No curl POSIX threaded DNS look set(ENABLE_UNIX_SOCKETS OFF CACHE INTERNAL "No curl Unix domain sockets support") set(HTTP_ONLY OFF CACHE INTERNAL "Curl is not http-only") set(PICKY_COMPILER OFF CACHE INTERNAL "Enable picky compiler options") +set(USE_NGHTTP2 ON) set(USE_WIN32_LDAP OFF CACHE INTERNAL "No curl Windows LDAP") if(CMAKE_USE_OPENSSL) elseif(WIN32) -- cgit v0.12