Skip to content

Commit be20719

Browse files
committed
Force LF: deps.info
1 parent 2d6e158 commit be20719

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Diff for: cmake/modules/hunter_create_deps_info.cmake

+12-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function(hunter_create_deps_info temp_deps_info)
2323
)
2424
endif()
2525

26-
file(WRITE "${temp_deps_info}" "")
26+
set(temp_deps_info_nolf "${temp_deps_info}.NOLF")
27+
file(WRITE "${temp_deps_info_nolf}" "")
2728

2829
foreach(dependency ${dependencies_list})
2930
string(REPLACE " " ";" dep_string "${dependency}")
@@ -48,6 +49,15 @@ function(hunter_create_deps_info temp_deps_info)
4849
"Unexpected length ${dep_string_len} (string: ${dep_string})"
4950
)
5051
endif()
51-
file(APPEND "${temp_deps_info}" "${dep_entry}\n")
52+
file(APPEND "${temp_deps_info_nolf}" "${dep_entry}\n")
5253
endforeach()
54+
55+
# About '@ONLY': no substitutions expected but COPYONLY can't be
56+
# used with NEWLINE_STYLE
57+
configure_file(
58+
"${temp_deps_info_nolf}"
59+
"${temp_deps_info}"
60+
@ONLY
61+
NEWLINE_STYLE LF
62+
)
5363
endfunction()

0 commit comments

Comments
 (0)