Skip to content

Commit 45d318f

Browse files
committed
Fix preamble containing Windows newlines
1 parent ce42569 commit 45d318f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/scripts/ConcatenateToCXX.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ foreach(infile ${INPUT_FILES})
5151
break()
5252
endif()
5353

54+
# Replace newlines
55+
string(REPLACE "0d0a" "\n" data "${data}")
56+
5457
# Count the bytes we're adding
5558
string(LENGTH "${data}" strlen)
5659
math(EXPR byte_count "${byte_count} + (${strlen} / 2)")

0 commit comments

Comments
 (0)