mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
cmake: Allow CMAKE_TOOLCHAIN_FILE to be set by environment variable
When no `CMAKE_TOOLCHAIN_FILE` is explicitly specified while creating a new build tree, check for an environment variable of the same name.
This commit is contained in:
@@ -10,3 +10,6 @@ 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.
|
||||
|
||||
Reference in New Issue
Block a user