avrdude: conf-generate: Fix line endings - always generate LF endings

avrdude configuration embedding tool was generating platform
specific line endings in avrdude-slic3r.conf.h
This commit is contained in:
Vojtech Kral 2019-08-19 10:35:18 +02:00
parent 745182988d
commit baaf66d138
2 changed files with 22 additions and 16 deletions

View file

@ -86,7 +86,7 @@ add_executable(avrdude-conf-gen conf-generate.cpp)
add_custom_command(
DEPENDS avrdude-conf-gen ${CMAKE_CURRENT_SOURCE_DIR}/avrdude-slic3r.conf
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/avrdude-slic3r.conf.h
COMMAND $<TARGET_FILE:avrdude-conf-gen> avrdude-slic3r.conf avrdude_slic3r_conf > avrdude-slic3r.conf.h
COMMAND $<TARGET_FILE:avrdude-conf-gen> avrdude-slic3r.conf avrdude_slic3r_conf avrdude-slic3r.conf.h
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)