summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2015-03-28 18:18:38 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-08 13:06:22 (GMT)
commite942526b3d9e886da4ce832d9d3adb99cc5ede2f (patch)
tree92eb25f78e80acf587c3066750f3eafce13202a9 /Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
parent579c4bec6e2352448f78d9333f7382ff34a08e5a (diff)
downloadCMake-e942526b3d9e886da4ce832d9d3adb99cc5ede2f.zip
CMake-e942526b3d9e886da4ce832d9d3adb99cc5ede2f.tar.gz
CMake-e942526b3d9e886da4ce832d9d3adb99cc5ede2f.tar.bz2
try_run: Use CMAKE_CROSSCOMPILING_EMULATOR.
If the CMAKE_CROSSCOMPILING_EMULATOR variable is defined, and CMAKE_CROSSCOMPILING is TRUE, then use CMAKE_CROSSCOMPILING_EMULATOR to run the try_run executables. This prevents the need to populate TryRunResults.cmake when cross compiling.
Diffstat (limited to 'Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst')
-rw-r--r--Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst b/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
index fa6f1b7..95d2c7f 100644
--- a/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
+++ b/Help/variable/CMAKE_CROSSCOMPILING_EMULATOR.rst
@@ -1,5 +1,12 @@
CMAKE_CROSSCOMPILING_EMULATOR
-----------------------------
-Default value for the :prop_tgt:`CROSSCOMPILING_EMULATOR` target property of
-executables. See that target property for additional information.
+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.
+
+The command will be used to run :command:`try_run` generated executables,
+which avoids manual population of the TryRunResults.cmake file.
+
+It is also used as the default value for the
+:prop_tgt:`CROSSCOMPILING_EMULATOR` target property of executables.