Skip to content

Commit

Permalink
Add NEWLINE_STYLE to cmake install (#9131)
Browse files Browse the repository at this point in the history
Looks like CMake before 3.20.0 doesn't generate newlines at all without
this configuration option. CMake 3.20.0 and prior, however, generates
newlines by default which is why this didn't show up in CI or
development.

Closes #9126
  • Loading branch information
alexcrichton authored Aug 14, 2024
1 parent 6008577 commit 61191a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/c-api/cmake/install-headers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ set(include_src "${CMAKE_CURRENT_LIST_DIR}/../include")

message(STATUS "Installing: ${dst}/wasmtime/conf.h")
file(READ "${include_src}/wasmtime/conf.h.in" conf_h)
file(CONFIGURE OUTPUT "${dst}/wasmtime/conf.h" CONTENT "${conf_h}")
file(CONFIGURE OUTPUT "${dst}/wasmtime/conf.h" CONTENT "${conf_h}"
NEWLINE_STYLE CRLF)
file(INSTALL "${include_src}/"
DESTINATION "${dst}"
FILES_MATCHING REGEX "\\.hh?$")

0 comments on commit 61191a2

Please sign in to comment.