Closed ReinhardKeil closed 3 days ago
I would recommend to use CMake commands (as well as CMake scripts) to overcome platform specific limitations.
For example instead of copy $input$ $output$
, the crossplatform command ${CMAKE_COMMAND} -E copy $input$ $output$
could be used.
CMake builtin command line tools: https://cmake.org/cmake/help/latest/manual/cmake.1.html#run-a-command-line-tool
Great that seems to solve it. I will add this to documentation
Improved documentation https://github.com/ReinhardKeil/cmsis-toolbox/blob/main/docs/YML-Input-Format.md#executes
Describe the bug
Trying this execute command on windows fails:
with this output:
To Reproduce Add the command to Hello.csolution.yml.
Expected behavior
The reason is that the Windows copy requires
\
characters in path names.It also triggers the question: do we need a
for-host-os:
key/value as the syntax of copy commands is different across operating systems.Environment (please complete the following information):
Additional context
I was trying to solve #1043 with in a pragmatic way.