cmake/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst

27 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2015-08-17 11:37:30 +02:00
CMAKE_CROSSCOMPILING_EMULATOR
-----------------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.3
2015-08-17 11:37:30 +02:00
This variable is only used when :variable:`CMAKE_CROSSCOMPILING` is on. It
should point to a command on the host system that can run executable built
for the target system.
2022-03-29 21:10:50 +02:00
.. versionadded:: 3.15
If this variable contains a :ref:`semicolon-separated list <CMake Language
Lists>`, then the first value is the command and remaining values are its
arguments.
2019-11-11 23:01:05 +01:00
2023-12-07 09:12:54 +01:00
.. versionadded:: 3.28
This variable can be initialized via an
:envvar:`CMAKE_CROSSCOMPILING_EMULATOR` environment variable.
2015-08-17 11:37:30 +02:00
The command will be used to run :command:`try_run` generated executables,
2019-11-11 23:01:05 +01:00
which avoids manual population of the ``TryRunResults.cmake`` file.
2015-08-17 11:37:30 +02:00
2024-04-14 22:45:38 +02:00
This variable is also used as the default value for the
:prop_tgt:`CROSSCOMPILING_EMULATOR` target property of executables. However,
while :manual:`generator expressions <cmake-generator-expressions(7)>` are
supported by the target property (since CMake 3.29), they are *not* supported
by this variable's :command:`try_run` functionality.