Skip to content

Commit

Permalink
try sorting out newline issue again
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Apr 21, 2024
1 parent e7dc42c commit 52d6d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/gitmodules/hdf5)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/gitmodules/hdf5/src)
foreach(file ${hdf5_INPUT_TXT_FILES})
execute_process(
COMMAND ${PYTHON_EXECUTABLE} "-c" "print(''.join([l.replace('\\r','') for l in open(0,'r')]),end='')"
COMMAND ${PYTHON_EXECUTABLE} "-c" "sys.stdout.reconfigure(newline='\\n');print(''.join([l.replace('\\r','') for l in open(0,'r')]),end='')"
INPUT_FILE ${CMAKE_SOURCE_DIR}/${file}
OUTPUT_FILE ${CMAKE_BINARY_DIR}/${file}
)
Expand Down

0 comments on commit 52d6d4c

Please sign in to comment.