2016-10-30 18:24:19 +01:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
2009-10-04 10:30:41 +03:00
|
|
|
|
|
|
|
|
2009-02-07 16:14:30 +02:00
|
|
|
# support for AT&T syntax assemblers, e.g. GNU as
|
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
set(ASM_DIALECT "-ATT")
|
2009-10-04 10:30:41 +03:00
|
|
|
# *.S files are supposed to be preprocessed, so they should not be passed to
|
|
|
|
# assembler but should be processed by gcc
|
2013-03-16 19:13:01 +02:00
|
|
|
set(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;asm)
|
2011-06-19 15:41:06 +03:00
|
|
|
|
2016-04-22 19:58:53 +02:00
|
|
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <INCLUDES> <FLAGS> -o <OBJECT> <SOURCE>")
|
2011-06-19 15:41:06 +03:00
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
include(CMakeASMInformation)
|
|
|
|
set(ASM_DIALECT)
|