From 9728839b9e0d9a12f3c70c6f221f3f6482894ce0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 12 Mar 2020 09:05:07 -0400 Subject: ASM: Fix executable link lines with GNU 'as' tool as CMAKE_ASM_COMPILER The GNU `as` tool does not know how to drive linking like the C compiler does. When using `as` as the compiler, use the linker directly. --- Modules/Compiler/GNU-ASM.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Compiler/GNU-ASM.cmake b/Modules/Compiler/GNU-ASM.cmake index ac241ed..4aa680f 100644 --- a/Modules/Compiler/GNU-ASM.cmake +++ b/Modules/Compiler/GNU-ASM.cmake @@ -7,4 +7,6 @@ __compiler_gnu(ASM) if(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_MATCH STREQUAL "GNU assembler") set(CMAKE_DEPFILE_FLAGS_ASM${ASM_DIALECT} "--MD ") + set(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE + " -o ") endif() -- cgit v0.12