diff options
author | Daniel R. Gomez <gomez@teragram.com> | 2012-06-18 20:19:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-06-18 20:21:54 (GMT) |
commit | d6865175a73f657336e48557bd670b08743df5a7 (patch) | |
tree | 09545673b2c0ac7fc70b2518885e7ef4db16fe8e /Tests/Assembler | |
parent | b39924cf222e0c2e958a780dfe77ca60592d2afd (diff) | |
download | CMake-d6865175a73f657336e48557bd670b08743df5a7.zip CMake-d6865175a73f657336e48557bd670b08743df5a7.tar.gz CMake-d6865175a73f657336e48557bd670b08743df5a7.tar.bz2 |
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.
Diffstat (limited to 'Tests/Assembler')
-rw-r--r-- | Tests/Assembler/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt index ad27e57..456e496 100644 --- a/Tests/Assembler/CMakeLists.txt +++ b/Tests/Assembler/CMakeLists.txt @@ -23,6 +23,7 @@ endif("${CMAKE_GENERATOR}" MATCHES "Makefile") if(SRCS) + set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS}") enable_language(ASM OPTIONAL) else(SRCS) message(STATUS "No assembler enabled, using C") |