Skip to content

Commit

Permalink
[cmake] savedefconfig.cmake: fix EOL changes to defconfig files on Wi…
Browse files Browse the repository at this point in the history
…ndows

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   ../../boards/arm/stm32/nucleo-l152re/configs/nsh/defconfig

no changes added to commit (use "git add" and/or "git commit -a")
  • Loading branch information
simbit18 authored and xiaoxiang781216 committed Jan 22, 2025
1 parent a095b1d commit 4050c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/savedefconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ foreach(LINE IN LISTS LINES)
file(APPEND ${OUTPUT_FILE} "${LINE}\n")
endforeach()

# Converts the newline style for the output file.
configure_file(${OUTPUT_FILE} ${OUTPUT_FILE} @ONLY NEWLINE_STYLE LF)

execute_process(COMMAND ${CMAKE_COMMAND} -E remove ${TARGET_FILE})

0 comments on commit 4050c79

Please sign in to comment.