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 /Modules/CMakeASMCompiler.cmake.in | |
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 'Modules/CMakeASMCompiler.cmake.in')
-rw-r--r-- | Modules/CMakeASMCompiler.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeASMCompiler.cmake.in b/Modules/CMakeASMCompiler.cmake.in index 2decc32da9..a6465f6957 100644 --- a/Modules/CMakeASMCompiler.cmake.in +++ b/Modules/CMakeASMCompiler.cmake.in @@ -9,6 +9,7 @@ set(CMAKE_ASM@ASM_DIALECT@_COMPILER_LOADED 1) set(CMAKE_ASM@ASM_DIALECT@_COMPILER_ID "@_CMAKE_ASM_COMPILER_ID@") set(CMAKE_ASM@ASM_DIALECT@_COMPILER_VERSION "@_CMAKE_ASM_COMPILER_VERSION@") set(CMAKE_ASM@ASM_DIALECT@_COMPILER_ENV_VAR "@_CMAKE_ASM_COMPILER_ENV_VAR@") +@_SET_CMAKE_ASM_COMPILER_ARCHITECTURE_ID@ set(CMAKE_ASM@ASM_DIALECT@_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) set(CMAKE_ASM@ASM_DIALECT@_LINKER_PREFERENCE 0) |