File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,15 @@ include(macCatalystUtils)
22
33# Workaround a cmake bug, see the corresponding function in swift-syntax
44function (force_target_link_libraries TARGET )
5- cmake_parse_arguments (ARGS "" "" "PUBLIC" ${ARGN} )
6-
7- foreach (DEPENDENCY ${ARGS_PUBLIC} )
8- target_link_libraries (${TARGET} PRIVATE ${DEPENDENCY} )
9- add_dependencies (${TARGET} ${DEPENDENCY} )
5+ target_link_libraries (${TARGET} ${ARGN} )
106
7+ cmake_parse_arguments (ARGS "PUBLIC;PRIVATE;INTERFACE" "" "" ${ARGN} )
8+ foreach (DEPENDENCY ${ARGS_UNPARSED_ARGUMENTS} )
119 string (REGEX REPLACE [<>:\"/\\|?*] _ sanitized ${DEPENDENCY} )
1210 add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized} -dep.swift
1311 COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized} -dep.swift
1412 DEPENDS ${DEPENDENCY}
15- )
13+ )
1614 target_sources (${TARGET} PRIVATE
1715 ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized} -dep.swift
1816 )
You can’t perform that action at this time.
0 commit comments