https://github.com/Kitware/CMake
Raw File
Tip revision: 1eed682d7cca9bb2c2b0709a6c3202a3b08613b2 authored by Brad King on 14 December 2023, 15:47:27 UTC
CMake 3.28.1
Tip revision: 1eed682
CMAKE_TOOLCHAIN_FILE.rst
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`.
back to top