summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-ASM.cmake
blob: 844c30e5066d78aebfd9ad748a5fb32ec2da8824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()