summaryrefslogtreecommitdiffstats
path: root/Help/envvar/CMAKE_TLS_VERSION.rst
blob: c411861709796e9c43669f448aa36253e80d4080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CMAKE_TLS_VERSION
-----------------

.. versionadded:: 3.30

.. include:: ENV_VAR.txt

Specify the default value for the :command:`file(DOWNLOAD)` and
:command:`file(UPLOAD)` commands' ``TLS_VERSION`` option.
This environment variable is used if the option is not given
and the :variable:`CMAKE_TLS_VERSION` cmake variable is not set.
See that variable for allowed values.

This variable is also used by the :module:`ExternalProject` and
:module:`FetchContent` modules for internal calls to
:command:`file(DOWNLOAD)` and ``git clone``.