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

Path to toolchain file supplied to :manual:`cmake(1)`.

This variable is specified on the command line when cross-compiling with CMake.
It is the path to a file which is read early in the CMake run and which
specifies locations for compilers and toolchain utilities, and other target
platform and compiler related information.

Relative paths are allowed and are interpreted first as relative to the
build directory, and if not found, relative to the source directory.

This is initialized by the :envvar:`CMAKE_TOOLCHAIN_FILE` environment
variable if it is set when a new build tree is first created.