1 # support for the nasm assembler
3 SET(ASM_DIALECT "-NASM")
5 SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s)
8 if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
9 SET(CMAKE_ASM${ASM_DIALECT}_OBJECT_FORMAT win64)
11 SET(CMAKE_ASM${ASM_DIALECT}_OBJECT_FORMAT win32)
14 if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
15 SET(CMAKE_ASM${ASM_DIALECT}_OBJECT_FORMAT macho64)
17 SET(CMAKE_ASM${ASM_DIALECT}_OBJECT_FORMAT macho)
20 if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
21 SET(CMAKE_ASM${ASM_DIALECT}_OBJECT_FORMAT elf64)
23 SET(CMAKE_ASM${ASM_DIALECT}_OBJECT_FORMAT elf)
27 SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> -f ${CMAKE_ASM${ASM_DIALECT}_OBJECT_FORMAT} -o <OBJECT> <SOURCE>")
29 INCLUDE(CMakeASMInformation)