summaryrefslogtreecommitdiffstats
path: root/Help/command/try_run.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/command/try_run.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/command/try_run.rst')
-rw-r--r--Help/command/try_run.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/command/try_run.rst b/Help/command/try_run.rst
index 43ee219..e3bd57d 100644
--- a/Help/command/try_run.rst
+++ b/Help/command/try_run.rst
@@ -73,7 +73,8 @@ When cross compiling, the executable compiled in the first step
usually cannot be run on the build host. The ``try_run`` command checks
the :variable:`CMAKE_CROSSCOMPILING` variable to detect whether CMake is in
cross-compiling mode. If that is the case, it will still try to compile
-the executable, but it will not try to run the executable. Instead it
+the executable, but it will not try to run the executable unless the
+:variable:`CMAKE_CROSSCOMPILING_EMULATOR` variable is set. Instead it
will create cache variables which must be filled by the user or by
presetting them in some CMake script file to the values the executable
would have produced if it had been run on its actual target platform.