summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMaikel van den Hurk <maikel.vandenhurk@tomtom.com>2019-02-25 07:28:47 (GMT)
committerMaikel van den Hurk <maikel.vandenhurk@tomtom.com>2019-02-25 07:28:47 (GMT)
commitbe87ce43f009b3baed3afd6b024bc05bb070b7de (patch)
tree2f615d3ffe97e65954627aaf1e52388e71c9e57a /Modules
parentf725750f040c3649d51af1543c03cf6c45307c12 (diff)
downloadCMake-be87ce43f009b3baed3afd6b024bc05bb070b7de.zip
CMake-be87ce43f009b3baed3afd6b024bc05bb070b7de.tar.gz
CMake-be87ce43f009b3baed3afd6b024bc05bb070b7de.tar.bz2
Add ASM Compiler detection for QCC
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineASMCompiler.cmake4
-rw-r--r--Modules/Compiler/QCC-ASM.cmake2
2 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineASMCompiler.cmake b/Modules/CMakeDetermineASMCompiler.cmake
index dbc41c8..86928fa 100644
--- a/Modules/CMakeDetermineASMCompiler.cmake
+++ b/Modules/CMakeDetermineASMCompiler.cmake
@@ -110,6 +110,10 @@ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_ADSP "-version")
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_ADSP "Analog Devices")
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS QCC)
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_QCC "-V")
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_QCC "gcc_nto")
+
include(CMakeDetermineCompilerId)
set(userflags)
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT} "${userflags}")
diff --git a/Modules/Compiler/QCC-ASM.cmake b/Modules/Compiler/QCC-ASM.cmake
new file mode 100644
index 0000000..9a9935b
--- /dev/null
+++ b/Modules/Compiler/QCC-ASM.cmake
@@ -0,0 +1,2 @@
+include(Compiler/QCC)
+__compiler_qcc(ASM)