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.
This commit is contained in:
Norbert Lange
2017-06-27 22:52:22 +02:00
committed by Brad King
parent fea7d69dde
commit 0b1a2876c8
11 changed files with 44 additions and 0 deletions

View File

@@ -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.