Tests/Assembler: Assemble and link with same flags (#13314)

The test uses the C compiler as the assembler so use the C flags for ASM
too.  This is important when the flags specify the target ABI.
This commit is contained in:
Daniel R. Gomez 2012-06-18 16:19:38 -04:00 committed by Brad King
parent b39924cf22
commit d6865175a7
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ endif("${CMAKE_GENERATOR}" MATCHES "Makefile")
if(SRCS) if(SRCS)
set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS}")
enable_language(ASM OPTIONAL) enable_language(ASM OPTIONAL)
else(SRCS) else(SRCS)
message(STATUS "No assembler enabled, using C") message(STATUS "No assembler enabled, using C")