summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_TOOLCHAIN_FILE.rst
blob: 423da9cd2d7b2b699f2ea70079dcafd505f62139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 soruce directory.