summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineASMCompiler.cmake
diff options
context:
space:
mode:
authorAnton Danielsson <danielsson.anton@gmail.com>2018-01-30 09:05:09 (GMT)
committerAnton Danielsson <danielsson.anton@gmail.com>2018-01-30 09:06:01 (GMT)
commitf83330ed6cefc8ff6332db6bc9aca30b8c12c3e9 (patch)
tree1165c6f710487fb814c66225dbb1f65a622b04a3 /Modules/CMakeDetermineASMCompiler.cmake
parentc6312835d5813fadf7dc818878d6c824bfece44b (diff)
downloadCMake-f83330ed6cefc8ff6332db6bc9aca30b8c12c3e9.zip
CMake-f83330ed6cefc8ff6332db6bc9aca30b8c12c3e9.tar.gz
CMake-f83330ed6cefc8ff6332db6bc9aca30b8c12c3e9.tar.bz2
ASM: ADSP assembler identification
Add support to identify the ADSP (Analog Devices) assembler in CMakeDetermineASMCompiler. Fixes: #17695
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 ed8f598..24048ed 100644
--- a/Modules/CMakeDetermineASMCompiler.cmake
+++ b/Modules/CMakeDetermineASMCompiler.cmake
@@ -100,6 +100,10 @@ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_YASM "--version")
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_YASM "(yasm)")
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS ADSP)
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_ADSP "-version")
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_ADSP "Analog Devices")
+
include(CMakeDetermineCompilerId)
set(userflags)
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT} "${userflags}")