summaryrefslogtreecommitdiff
path: root/share/cmake-3.5/Modules/Compiler/IAR-ASM.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.5/Modules/Compiler/IAR-ASM.cmake')
-rwxr-xr-xshare/cmake-3.5/Modules/Compiler/IAR-ASM.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/share/cmake-3.5/Modules/Compiler/IAR-ASM.cmake b/share/cmake-3.5/Modules/Compiler/IAR-ASM.cmake
new file mode 100755
index 0000000..844c30e
--- /dev/null
+++ b/share/cmake-3.5/Modules/Compiler/IAR-ASM.cmake
@@ -0,0 +1,14 @@
+# This file is processed when the IAR compiler is used for an assembler file
+
+include(Compiler/IAR)
+
+set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <SOURCE> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT>")
+
+if("${IAR_TARGET_ARCHITECTURE}" STREQUAL "ARM")
+ set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;asm;msa)
+endif()
+
+
+if("${IAR_TARGET_ARCHITECTURE}" STREQUAL "AVR")
+ set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s90;asm;msa)
+endif()