Skip to content

Commit 4113d16

Browse files
StephanKaarnemertz
authored andcommitted
cleanup cmake preset and fixed path problem
1 parent 4fa3671 commit 4113d16

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

CMakePresets.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@
333333
"CMAKE_CROSSCOMPILE": "ON",
334334
"CMAKE_SYSTEM_PROCESSOR": "arm",
335335
"CMAKE_TRY_COMPILE_TARGET_TYPE": "STATIC_LIBRARY",
336-
"CMAKE_CXX_COMPILER_FORCED": "ON",
337336
"CMAKE_CROSSCOMPILING": "TRUE"
338337
}
339338
},
@@ -351,7 +350,6 @@
351350
"CMAKE_CROSSCOMPILE": "ON",
352351
"CMAKE_SYSTEM_PROCESSOR": "arm",
353352
"CMAKE_TRY_COMPILE_TARGET_TYPE": "STATIC_LIBRARY",
354-
"CMAKE_CXX_COMPILER_FORCED": "ON",
355353
"CMAKE_CROSSCOMPILING": "TRUE"
356354
}
357355
}

src/embedded/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ TARGET_LINK_OPTIONS(${TARGET}
1111
)
1212
ADD_CUSTOM_TARGET(${TARGET}.bin ALL
1313
DEPENDS ${TARGET}
14-
COMMAND ${CMAKE_OBJCOPY} -Obinary ${TARGET}.elf ${TARGET}.bin
15-
COMMAND ${CMAKE_OBJCOPY} -Oihex ${TARGET}.elf ${TARGET}.hex
14+
COMMAND ${CMAKE_OBJCOPY} -Obinary ${CMAKE_BINARY_DIR}/bin/${TARGET}.elf ${CMAKE_BINARY_DIR}/bin/${TARGET}.bin
15+
COMMAND ${CMAKE_OBJCOPY} -Oihex ${CMAKE_BINARY_DIR}/bin/${TARGET}.elf ${CMAKE_BINARY_DIR}/bin/${TARGET}.hex
1616
)

0 commit comments

Comments
 (0)