Change the default rules so they fit better to the new ASM handling
CMAKE_ASM_COMPILE_OBJECT is now so that it fits for GNU, Intel, HP and Sun ASM_ATT had to be adjusted. Also adjusted the default CMAKE_ASM_LINK_EXECUTABLE Alex
This commit is contained in:
parent
5542d58014
commit
7456461588
|
@ -18,5 +18,8 @@ SET(ASM_DIALECT "-ATT")
|
||||||
# *.S files are supposed to be preprocessed, so they should not be passed to
|
# *.S files are supposed to be preprocessed, so they should not be passed to
|
||||||
# assembler but should be processed by gcc
|
# assembler but should be processed by gcc
|
||||||
SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;asm)
|
SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;asm)
|
||||||
|
|
||||||
|
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> -o <OBJECT> <SOURCE>")
|
||||||
|
|
||||||
INCLUDE(CMakeASMInformation)
|
INCLUDE(CMakeASMInformation)
|
||||||
SET(ASM_DIALECT)
|
SET(ASM_DIALECT)
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
MESSAGE(STATUS "Loaded CMakeASM${ASM_DIALECT}Information - ASM${ASM_DIALECT} support is still experimental, please report issues")
|
|
||||||
|
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o)
|
SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o)
|
||||||
ELSE(UNIX)
|
ELSE(UNIX)
|
||||||
|
@ -92,7 +90,7 @@ MARK_AS_ADVANCED(CMAKE_ASM${ASM_DIALECT}_FLAGS
|
||||||
|
|
||||||
|
|
||||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
|
IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
|
||||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> -o <OBJECT> <SOURCE>")
|
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> <SOURCE>")
|
||||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
|
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
|
||||||
|
|
||||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
|
IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
|
||||||
|
@ -103,7 +101,7 @@ ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
|
||||||
|
|
||||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
|
IF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
|
||||||
SET(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE
|
SET(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE
|
||||||
"<CMAKE_LINKER> <FLAGS> <CMAKE_ASM${ASM_DIALECT}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
"<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> <CMAKE_ASM${ASM_DIALECT}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
|
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
|
||||||
|
|
||||||
# to be done
|
# to be done
|
||||||
|
|
|
@ -3,6 +3,4 @@ include(Compiler/GNU)
|
||||||
|
|
||||||
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;S;asm)
|
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;S;asm)
|
||||||
|
|
||||||
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
|
||||||
|
|
||||||
__compiler_gnu(ASM)
|
__compiler_gnu(ASM)
|
||||||
|
|
|
@ -7,5 +7,3 @@ SET(CMAKE_ASM_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
|
||||||
SET(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
SET(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||||
|
|
||||||
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s)
|
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s)
|
||||||
|
|
||||||
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s )
|
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s )
|
||||||
|
|
||||||
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
|
||||||
|
|
||||||
SET(CMAKE_ASM_VERBOSE_FLAG "-#")
|
SET(CMAKE_ASM_VERBOSE_FLAG "-#")
|
||||||
|
|
||||||
SET(CMAKE_SHARED_LIBRARY_ASM_FLAGS "-KPIC")
|
SET(CMAKE_SHARED_LIBRARY_ASM_FLAGS "-KPIC")
|
||||||
|
|
Loading…
Reference in New Issue