diff options
author | Norbert Lange <nolange79@gmail.com> | 2017-06-27 22:52:22 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-29 13:25:57 -0400 |
commit | 0b1a2876c817a00daf7027570b1976a9e15ff654 (patch) | |
tree | a064c4e632d0517b19a173faeec9181de8cd4bf6 /Help/variable | |
parent | fea7d69ddeedd72f6a1f8cec5a011696dec832db (diff) | |
download | cmake-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.rst | 8 |
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. |