Skip to content

Commit ad5a28b

Browse files
massonalfpistm
authored andcommitted
fix: force the .elf suffix on output
To mirror as closely as possible the behavior of Arduino tools.
1 parent 0db425c commit ad5a28b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: cmake/toolchain.cmake

+6
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ set(BUILD_SHARED_LIBS false CACHE STRING "")
5151

5252
set(CMAKE_CXX_STANDARD 14)
5353
set(CMAKE_C_STANDARD 11)
54+
55+
set(CMAKE_EXECUTABLE_SUFFIX .elf)
56+
# These override CMAKE_EXECUTABLE_SUFFIX -- prevent any CMake built-in from overriding the value we want
57+
set(CMAKE_EXECUTABLE_SUFFIX_C .elf)
58+
set(CMAKE_EXECUTABLE_SUFFIX_CXX .elf)
59+
set(CMAKE_EXECUTABLE_SUFFIX_ASM .elf)

0 commit comments

Comments
 (0)