summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-06-01 18:31:10 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-01 18:43:37 (GMT)
commit97fa63c09b5e50bc353b702de011e36f76577dad (patch)
tree6f82ae973f2cdf63d45b3c9b2c81bcf6041cfb64 /Modules
parent1d2c8ae209e4cc0121310b0da10063b68f43bc68 (diff)
downloadCMake-97fa63c09b5e50bc353b702de011e36f76577dad.zip
CMake-97fa63c09b5e50bc353b702de011e36f76577dad.tar.gz
CMake-97fa63c09b5e50bc353b702de011e36f76577dad.tar.bz2
ASM: Fix preprocessor definition flags for GNU 'as' tool
Fixes: #20780
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/GNU-ASM.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-ASM.cmake b/Modules/Compiler/GNU-ASM.cmake
index 3daa57d..94af401 100644
--- a/Modules/Compiler/GNU-ASM.cmake
+++ b/Modules/Compiler/GNU-ASM.cmake
@@ -9,4 +9,5 @@ if(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_MATCH STREQUAL "GNU assembler")
set(CMAKE_DEPFILE_FLAGS_ASM${ASM_DIALECT} "--MD <DEPFILE>")
set(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE
"<CMAKE_LINKER> <FLAGS> <CMAKE_ASM${ASM_DIALECT}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
+ set(CMAKE_ASM_DEFINE_FLAG "--defsym ")
endif()