summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/EnvToolchainAbsolute.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-03 12:32:44 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-03 12:32:44 (GMT)
commit6c34ed9b879906d1eaadad80f37f518829017789 (patch)
tree45043b460fae481ff6592a7fc016e1b893431bc7 /Tests/RunCMake/CommandLine/EnvToolchainAbsolute.cmake
parent9c33ff4dda643f8a93d55f9895e31dce9056134f (diff)
downloadCMake-6c34ed9b879906d1eaadad80f37f518829017789.zip
CMake-6c34ed9b879906d1eaadad80f37f518829017789.tar.gz
CMake-6c34ed9b879906d1eaadad80f37f518829017789.tar.bz2
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.
Diffstat (limited to 'Tests/RunCMake/CommandLine/EnvToolchainAbsolute.cmake')
-rw-r--r--Tests/RunCMake/CommandLine/EnvToolchainAbsolute.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/EnvToolchainAbsolute.cmake b/Tests/RunCMake/CommandLine/EnvToolchainAbsolute.cmake
new file mode 100644
index 0000000..0f91b5e
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/EnvToolchainAbsolute.cmake
@@ -0,0 +1 @@
+include(EnvToolchain.cmake)