summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2023-06-06 12:43:39 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-13 17:58:44 (GMT)
commit7005dea00589143e2d91d863a7d419385a0babf4 (patch)
treec001d4f8513fa2c0d5857f5021f7b802f92173c4 /Help/variable
parentccb866448f03a4cf5601f271fc0030eef288acd3 (diff)
downloadCMake-7005dea00589143e2d91d863a7d419385a0babf4.zip
CMake-7005dea00589143e2d91d863a7d419385a0babf4.tar.gz
CMake-7005dea00589143e2d91d863a7d419385a0babf4.tar.bz2
CrossCompiling: Load CMAKE_CROSSCOMPILING_EMULATOR from environment
Read `CMAKE_CROSSCOMPILING_EMULATOR` from an environment variable of the same name if not specified with `-D` or an initial cache value. Along with existing environment variable settings such as `CMAKE_TOOLCHAIN_FILE`, cross compilation configuration can be more completely set via environment variables. Suggested-by: Henry Schreiner <henryschreineriii@gmail.com>
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst b/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
index e21b35d..1c3a26c 100644
--- a/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
+++ b/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
@@ -12,6 +12,10 @@ for the target system.
Lists>`, then the first value is the command and remaining values are its
arguments.
+.. versionadded:: 3.28
+ This variable can be initialized via an
+ :envvar:`CMAKE_CROSSCOMPILING_EMULATOR` environment variable.
+
The command will be used to run :command:`try_run` generated executables,
which avoids manual population of the ``TryRunResults.cmake`` file.