File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ SET_TARGET_PROPERTIES({{name}} PROPERTIES ENABLE_EXPORTS 1)
55
55
TARGET_LINK_LIBRARIES({{name}}
56
56
{% for libname in dependencies.keys()|sort(reverse=true) %}{{libname}}
57
57
{% endfor %})
58
- # add dependencies for stdc++, c and nosys so the linker stage works
59
- TARGET_LINK_LIBRARIES({{name}} stdc++ c nosys )
58
+ # add syslibs dependencies to create the correct linker order
59
+ TARGET_LINK_LIBRARIES({{name}} {{ld_sys_libs|join(" ")}} )
60
60
61
61
{% if pp -%}
62
62
add_custom_command(TARGET {{name}} PRE_LINK
@@ -68,6 +68,7 @@ add_custom_command(TARGET {{name}} PRE_LINK
68
68
69
69
add_custom_command(TARGET {{name}} POST_BUILD
70
70
COMMAND ${ELF2BIN} -O ihex $<TARGET_FILE:{{name}}> $<TARGET_FILE:{{name}}>.hex
71
+ COMMAND ${CMAKE_COMMAND} -E echo "-- built: $<TARGET_FILE:{{name}}>.hex"
71
72
)
72
73
73
74
You can’t perform that action at this time.
0 commit comments