summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-01 14:43:56 -0400
committerBrad King <brad.king@kitware.com>2020-04-03 06:43:00 -0400
commit02dd24a9289c32808696c4cde7aa37d2255f42d4 (patch)
tree2bf4bd3e6dca5a2b46eb6780beb5d05e75fc0047
parenta24dd93e93a6e62bf579a49a82fb57715ddb21d1 (diff)
downloadcmake-02dd24a9289c32808696c4cde7aa37d2255f42d4.tar.gz
curl: Enable HTTP/2 support by using nghttp2
-rw-r--r--Help/release/dev/curl-http2.rst8
-rw-r--r--Utilities/cmcurl/CMakeLists.txt1
2 files changed, 9 insertions, 0 deletions
diff --git a/Help/release/dev/curl-http2.rst b/Help/release/dev/curl-http2.rst
new file mode 100644
index 0000000000..8390a425e9
--- /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 5c732efd25..c90e768ba3 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)