cmake/Help/variable/CMAKE_TOOLCHAIN_FILE.rst

19 lines
772 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
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.
2015-11-17 17:22:37 +01:00
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.
2021-09-14 00:13:48 +02:00
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.
2022-08-04 22:12:04 +02:00
See the :variable:`CMAKE_PROJECT_TOP_LEVEL_INCLUDES` variable for setting
other things not directly related to the toolchain.