diff --git a/tools/cmake/app.cmake b/tools/cmake/app.cmake index 3058b875df..09e54e73cf 100644 --- a/tools/cmake/app.cmake +++ b/tools/cmake/app.cmake @@ -19,3 +19,7 @@ endif() include(${MBED_PATH}/tools/cmake/profile.cmake) enable_language(C CXX ASM) + +# set executable suffix (has to be done after enabling languages) +# Note: This is nice to have, but is also required because STM32Cube will only work on files with a .elf extension +set(CMAKE_EXECUTABLE_SUFFIX .elf) \ No newline at end of file