summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineASMCompiler.cmake
diff options
context:
space:
mode:
authorJoakim Andersson <Joakim.Andersson@nordicsemi.no>2015-10-26 13:51:09 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-02 18:45:24 (GMT)
commit035a658f4fdc8028ff19568aa2ded8b3efa70909 (patch)
tree133d05ec37b5f5b2632111186d0bc0a52aabdc3b /Modules/CMakeDetermineASMCompiler.cmake
parent74ea66850c99578d7d1665e64579279a6ff89896 (diff)
downloadCMake-035a658f4fdc8028ff19568aa2ded8b3efa70909.zip
CMake-035a658f4fdc8028ff19568aa2ded8b3efa70909.tar.gz
CMake-035a658f4fdc8028ff19568aa2ded8b3efa70909.tar.bz2
Add support for the ARM Compiler (arm.com)
Create an `ARMCC` compiler id corresponding to compilers identified and versioned by the `__ARMCC_VERSION` predefined macro. See documentation for the compilers at http://infocenter.arm.com/help/topic/com.arm.doc.set.swdev/index.html
Diffstat (limited to 'Modules/CMakeDetermineASMCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineASMCompiler.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineASMCompiler.cmake b/Modules/CMakeDetermineASMCompiler.cmake
index 25af3e3..91111d2 100644
--- a/Modules/CMakeDetermineASMCompiler.cmake
+++ b/Modules/CMakeDetermineASMCompiler.cmake
@@ -92,6 +92,10 @@ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_IAR )
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_IAR "IAR Assembler")
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS ARMCC)
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_ARMCC )
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_ARMCC "(ARM Compiler)|(ARM Assembler)")
+
include(CMakeDetermineCompilerId)
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT})