File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ function(hunter_create_deps_info temp_deps_info)
23
23
)
24
24
endif ()
25
25
26
- file (WRITE "${temp_deps_info} " "" )
26
+ set (temp_deps_info_nolf "${temp_deps_info} .NOLF" )
27
+ file (WRITE "${temp_deps_info_nolf} " "" )
27
28
28
29
foreach (dependency ${dependencies_list} )
29
30
string (REPLACE " " ";" dep_string "${dependency} " )
@@ -48,6 +49,15 @@ function(hunter_create_deps_info temp_deps_info)
48
49
"Unexpected length ${dep_string_len} (string: ${dep_string} )"
49
50
)
50
51
endif ()
51
- file (APPEND "${temp_deps_info } " "${dep_entry} \n " )
52
+ file (APPEND "${temp_deps_info_nolf } " "${dep_entry} \n " )
52
53
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
+ )
53
63
endfunction ()
You can’t perform that action at this time.
0 commit comments