From 74564615889e35b8794e62325aa10d46d525bba4 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sat, 12 Feb 2011 16:15:59 +0100 Subject: 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 --- Modules/CMakeASM-ATTInformation.cmake | 3 +++ Modules/CMakeASMInformation.cmake | 6 ++---- Modules/Compiler/GNU-ASM.cmake | 2 -- Modules/Compiler/Intel-ASM.cmake | 2 -- Modules/Compiler/SunPro-ASM.cmake | 2 -- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Modules/CMakeASM-ATTInformation.cmake b/Modules/CMakeASM-ATTInformation.cmake index abf560b..cb1f5d6 100644 --- a/Modules/CMakeASM-ATTInformation.cmake +++ b/Modules/CMakeASM-ATTInformation.cmake @@ -18,5 +18,8 @@ SET(ASM_DIALECT "-ATT") # *.S files are supposed to be preprocessed, so they should not be passed to # assembler but should be processed by gcc SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;asm) + +SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT " -o ") + INCLUDE(CMakeASMInformation) SET(ASM_DIALECT) diff --git a/Modules/CMakeASMInformation.cmake b/Modules/CMakeASMInformation.cmake index f86595c..839eef0 100644 --- a/Modules/CMakeASMInformation.cmake +++ b/Modules/CMakeASMInformation.cmake @@ -12,8 +12,6 @@ # (To distribute this file outside of CMake, substitute the full # 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) SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o) ELSE(UNIX) @@ -92,7 +90,7 @@ MARK_AS_ADVANCED(CMAKE_ASM${ASM_DIALECT}_FLAGS IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT) - SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT " -o ") + SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT " -o ") ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT) 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) SET(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE - " -o ") + " -o ") ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE) # to be done diff --git a/Modules/Compiler/GNU-ASM.cmake b/Modules/Compiler/GNU-ASM.cmake index aa21584..e07401d 100644 --- a/Modules/Compiler/GNU-ASM.cmake +++ b/Modules/Compiler/GNU-ASM.cmake @@ -3,6 +3,4 @@ include(Compiler/GNU) set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;S;asm) -set(CMAKE_ASM_COMPILE_OBJECT " -o -c ") - __compiler_gnu(ASM) diff --git a/Modules/Compiler/Intel-ASM.cmake b/Modules/Compiler/Intel-ASM.cmake index 07437a8..aa0d8df 100644 --- a/Modules/Compiler/Intel-ASM.cmake +++ b/Modules/Compiler/Intel-ASM.cmake @@ -7,5 +7,3 @@ SET(CMAKE_ASM_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") SET(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s) - -set(CMAKE_ASM_COMPILE_OBJECT " -o -c ") diff --git a/Modules/Compiler/SunPro-ASM.cmake b/Modules/Compiler/SunPro-ASM.cmake index 5f5fafe..dfc5702 100644 --- a/Modules/Compiler/SunPro-ASM.cmake +++ b/Modules/Compiler/SunPro-ASM.cmake @@ -1,7 +1,5 @@ set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s ) -set(CMAKE_ASM_COMPILE_OBJECT " -o -c ") - SET(CMAKE_ASM_VERBOSE_FLAG "-#") SET(CMAKE_SHARED_LIBRARY_ASM_FLAGS "-KPIC") -- cgit v0.12