summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_NETRC_FILE.rst
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-10-04 10:47:12 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-10-05 12:41:34 (GMT)
commit1851aa49be01076e0869ce14b22b9a860454bba4 (patch)
tree932ff1917d20679cc1d6335138d1848881b949f7 /Help/variable/CMAKE_NETRC_FILE.rst
parent96937438b74469eea5b0ae46b4e13489ac3faec7 (diff)
downloadCMake-1851aa49be01076e0869ce14b22b9a860454bba4.zip
CMake-1851aa49be01076e0869ce14b22b9a860454bba4.tar.gz
CMake-1851aa49be01076e0869ce14b22b9a860454bba4.tar.bz2
FetchContent: Pass through networking-related CMAKE_... variables
CMAKE_TLS_VERIFY, CMAKE_TLS_CAINFO, CMAKE_NETRC and CMAKE_NETRC_FILE are now passed through to the underlying ExternalProject sub-build. Previously, they were silently ignored. Fixes: #22144
Diffstat (limited to 'Help/variable/CMAKE_NETRC_FILE.rst')
-rw-r--r--Help/variable/CMAKE_NETRC_FILE.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/Help/variable/CMAKE_NETRC_FILE.rst b/Help/variable/CMAKE_NETRC_FILE.rst
index 97a645e..af98170 100644
--- a/Help/variable/CMAKE_NETRC_FILE.rst
+++ b/Help/variable/CMAKE_NETRC_FILE.rst
@@ -3,9 +3,11 @@ CMAKE_NETRC_FILE
.. versionadded:: 3.11
-This variable is used to initialize the ``NETRC_FILE`` option for
-:command:`file(DOWNLOAD)` and :command:`file(UPLOAD)` commands and the
-module :module:`ExternalProject`. See those commands for additional
-information.
+This variable is used to initialize the ``NETRC_FILE`` option for the
+:command:`file(DOWNLOAD)` and :command:`file(UPLOAD)` commands.
+See those commands for additional information.
+
+This variable is also used by the :module:`ExternalProject` and
+:module:`FetchContent` modules for internal calls to :command:`file(DOWNLOAD)`.
The local option takes precedence over this variable.