Skip to content

Commit

Permalink
Fix CMake abuse for assembly (.s) files
Browse files Browse the repository at this point in the history
  • Loading branch information
douggeiger committed Sep 18, 2014
1 parent f7bc499 commit 2a58321
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ if(${CMAKE_VERSION} VERSION_GREATER "2.8.9")
message(STATUS "--==>> -CFLAGS1: ${FULL_C_FLAGS}")
string(REGEX MATCH "${ARCH}" ASM_ARCH "${FULL_C_FLAGS}")
if( ASM_ARCH STREQUAL "armv7" )
set(ASM-ATT $ENV{ASM})
message(STATUS "---- Adding ASM files") # we always use ATT syntax
message(STATUS "-- Detected armv7 architecture; enabling ASM")
# setup architecture specific assembler flags
Expand All @@ -422,9 +421,9 @@ if(${CMAKE_VERSION} VERSION_GREATER "2.8.9")
message(STATUS "Adding source file: ${asm_file}")
endforeach(asm_file)
endif()
set(CMAKE_ASM-ATT_FLAGS_INIT ${ARCH_ASM_FLAGS})
enable_language(ASM-ATT) # this must be after flags_init
message(STATUS "asm flags: ${CMAKE_ASM-ATT_FLAGS}")
set(CMAKE_ASM_FLAGS ${ARCH_ASM_FLAGS})
enable_language(ASM) # this must be after flags_init
message(STATUS "asm flags: ${CMAKE_ASM_FLAGS}")
endforeach(ARCH)

else(${CMAKE_VERSION} VERSION_GREATER "2.8.9")
Expand Down

0 comments on commit 2a58321

Please sign in to comment.