summaryrefslogtreecommitdiff
path: root/Help/variable/CMAKE_LANG_COMPILER_TARGET.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/variable/CMAKE_LANG_COMPILER_TARGET.rst')
-rw-r--r--Help/variable/CMAKE_LANG_COMPILER_TARGET.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_COMPILER_TARGET.rst b/Help/variable/CMAKE_LANG_COMPILER_TARGET.rst
new file mode 100644
index 000000000..656c57d2b
--- /dev/null
+++ b/Help/variable/CMAKE_LANG_COMPILER_TARGET.rst
@@ -0,0 +1,11 @@
+CMAKE_<LANG>_COMPILER_TARGET
+----------------------------
+
+The target for cross-compiling, if supported.
+
+Some compiler drivers are inherently cross-compilers, such as clang and
+QNX qcc. These compiler drivers support a command-line argument to specify
+the target to cross-compile for.
+
+This variable may only be set in a toolchain file specified by
+the :variable:`CMAKE_TOOLCHAIN_FILE` variable.