CMAKE_TOOLCHAIN_FILE

From Get docs
Cmake/docs/3.21/envvar/cmake toolchain file


CMAKE_TOOLCHAIN_FILE

New in version 3.21.


This is a CMake Environment Variable. Its initial value is taken from the calling process environment.

The CMAKE_TOOLCHAIN_FILE environment variable specifies a default value for the 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 CMAKE_TOOLCHAIN_FILE.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/envvar/CMAKE_TOOLCHAIN_FILE.html