summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorNorbert Lange <nolange79@gmail.com>2017-06-27 20:52:22 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-29 17:25:57 (GMT)
commit0b1a2876c817a00daf7027570b1976a9e15ff654 (patch)
treea064c4e632d0517b19a173faeec9181de8cd4bf6 /Help/variable
parentfea7d69ddeedd72f6a1f8cec5a011696dec832db (diff)
downloadCMake-0b1a2876c817a00daf7027570b1976a9e15ff654.zip
CMake-0b1a2876c817a00daf7027570b1976a9e15ff654.tar.gz
CMake-0b1a2876c817a00daf7027570b1976a9e15ff654.tar.bz2
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 0000000..054c648
--- /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.