File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,16 @@ function(force_target_link_libraries TARGET)
5
5
cmake_parse_arguments (ARGS "" "" "PUBLIC" ${ARGN} )
6
6
7
7
foreach (DEPENDENCY ${ARGS_PUBLIC} )
8
- target_link_libraries (${TARGET} PRIVATE
9
- ${DEPENDENCY}
10
- )
8
+ target_link_libraries (${TARGET} PRIVATE ${DEPENDENCY} )
11
9
add_dependencies (${TARGET} ${DEPENDENCY} )
12
10
13
- add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /forced-${DEPENDENCY} -dep.swift
14
- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR} /forced-${DEPENDENCY} -dep.swift
11
+ string (REGEX REPLACE [<>:\"/\\|?*] _ sanitized ${DEPENDENCY} )
12
+ add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized} -dep.swift
13
+ COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized} -dep.swift
15
14
DEPENDS ${DEPENDENCY}
16
15
)
17
16
target_sources (${TARGET} PRIVATE
18
- ${CMAKE_CURRENT_BINARY_DIR} /forced-${DEPENDENCY } -dep.swift
17
+ ${CMAKE_CURRENT_BINARY_DIR} /forced-${sanitized } -dep.swift
19
18
)
20
19
endforeach ()
21
20
endfunction ()
You can’t perform that action at this time.
0 commit comments