mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 23:10:26 +00:00
c736de7b28
Teach the Makefile and Ninja generators to substitute for an <INCLUDES> placeholder instead of putting -I in <FLAGS>. Update our values for CMAKE_<LANG>_COMPILE_OBJECT, CMAKE_<LANG>_CREATE_ASSEMBLY_SOURCE, and CMAKE_<LANG>_CREATE_PREPROCESSED_SOURCE to place <INCLUDES> just before <FLAGS>.
15 lines
422 B
CMake
15 lines
422 B
CMake
# 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()
|