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)
2
2
3
3
# Workaround a cmake bug, see the corresponding function in swift-syntax
4
4
function (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} )
10
6
7
+ cmake_parse_arguments (ARGS "PUBLIC;PRIVATE;INTERFACE" "" "" ${ARGN} )
8
+ foreach (DEPENDENCY ${ARGS_UNPARSED_ARGUMENTS} )
11
9
string (REGEX REPLACE [<>:\" /\\ |?*] _ sanitized ${DEPENDENCY} )
12
10
add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized}-dep.swift
13
11
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized}-dep.swift
14
12
DEPENDS ${DEPENDENCY}
15
- )
13
+ )
16
14
target_sources (${TARGET} PRIVATE
17
15
${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized}-dep.swift
18
16
)
You can’t perform that action at this time.
0 commit comments