summaryrefslogtreecommitdiffstats
path: root/Help/envvar/CMAKE_TOOLCHAIN_FILE.rst
blob: 7ea9cea3572100989b05f3d68379d817aeaa24b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CMAKE_TOOLCHAIN_FILE
--------------------

.. versionadded:: 3.21

.. include:: ENV_VAR.txt

The ``CMAKE_TOOLCHAIN_FILE`` environment variable specifies a default value
for the :variable:`CMAKE_TOOLCHAIN_FILE` variable when there is no explicit
configuration given on the first run while creating a new build tree.
On later runs in an existing build tree the value persists in the cache
as :variable:`CMAKE_TOOLCHAIN_FILE`.