CMAKE_CROSSCOMPILING_EMULATOR.rst 652 B

12345678910111213141516
  1. CMAKE_CROSSCOMPILING_EMULATOR
  2. -----------------------------
  3. This variable is only used when :variable:`CMAKE_CROSSCOMPILING` is on. It
  4. should point to a command on the host system that can run executable built
  5. for the target system.
  6. If this variable contains a :ref:`semicolon-separated list <CMake Language
  7. Lists>`, then the first value is the command and remaining values are its
  8. arguments.
  9. The command will be used to run :command:`try_run` generated executables,
  10. which avoids manual population of the ``TryRunResults.cmake`` file.
  11. It is also used as the default value for the
  12. :prop_tgt:`CROSSCOMPILING_EMULATOR` target property of executables.