File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 17
17
#
18
18
# Remove once rdar://102202478 is fixed.
19
19
function (target_link_swift_syntax_libraries TARGET )
20
- cmake_parse_arguments (ARGS "" "" "PUBLIC" ${ARGN} )
20
+ target_link_libraries ( ${TARGET} ${ARGN} )
21
21
22
- target_link_libraries (${TARGET} PUBLIC ${ARGS_PUBLIC} )
23
- foreach (DEPENDENCY ${ARGS_PUBLIC} )
24
- add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /forced-${DEPENDENCY} -dep.swift
25
- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR} /forced-${DEPENDENCY} -dep.swift
22
+ cmake_parse_arguments (ARGS "PUBLIC;PRIVATE;INTERFACE" "" "" ${ARGN} )
23
+ foreach (DEPENDENCY ${ARGS_UNPARSED_ARGUMENTS} )
24
+ string (REGEX REPLACE [<>:\"/\\|?*] _ sanitized ${DEPENDENCY} )
25
+ add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized} -dep.swift
26
+ COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized} -dep.swift
26
27
DEPENDS ${DEPENDENCY}
27
- )
28
+ )
28
29
target_sources (${TARGET} PRIVATE
29
- ${CMAKE_CURRENT_BINARY_DIR} /forced-${DEPENDENCY } -dep.swift
30
+ ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized } -dep.swift
30
31
)
31
32
endforeach ()
32
33
endfunction ()
You can’t perform that action at this time.
0 commit comments