Skip to content

Commit 068358d

Browse files
Set executable suffix in CMake
1 parent 0c6753b commit 068358d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/cmake/app.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ endif()
1919
include(${MBED_PATH}/tools/cmake/profile.cmake)
2020

2121
enable_language(C CXX ASM)
22+
23+
# set executable suffix (has to be done after enabling languages)
24+
# Note: This is nice to have, but is also required because STM32Cube will only work on files with a .elf extension
25+
set(CMAKE_EXECUTABLE_SUFFIX .elf)

0 commit comments

Comments
 (0)