summaryrefslogtreecommitdiff
path: root/Help/variable
diff options
context:
space:
mode:
authorNorbert Lange <nolange79@gmail.com>2017-06-27 22:52:22 +0200
committerBrad King <brad.king@kitware.com>2017-06-29 13:25:57 -0400
commit0b1a2876c817a00daf7027570b1976a9e15ff654 (patch)
treea064c4e632d0517b19a173faeec9181de8cd4bf6 /Help/variable
parentfea7d69ddeedd72f6a1f8cec5a011696dec832db (diff)
downloadcmake-0b1a2876c817a00daf7027570b1976a9e15ff654.tar.gz
Add a CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID variable
Compilers such as MSVC and IAR may have variants that target different architectures. We have been using a `MSVC_<LANG>_ARCHITECTURE_ID` variable to hold this information for MSVC. Add an alternative with a more general name (later we can port MSVC to it too). This additional information may be needed to generate proper invocations of the compiler based on its architecture variant.
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_LANG_COMPILER_ARCHITECTURE_ID.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_COMPILER_ARCHITECTURE_ID.rst b/Help/variable/CMAKE_LANG_COMPILER_ARCHITECTURE_ID.rst
new file mode 100644
index 0000000000..054c648841
--- /dev/null
+++ b/Help/variable/CMAKE_LANG_COMPILER_ARCHITECTURE_ID.rst
@@ -0,0 +1,8 @@
+CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID
+-------------------------------------
+
+An internal variable subject to change.
+
+This is used to identify the variant of a compiler based on its target
+architecture. For some compilers this is needed to determine the correct
+usage.