File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,14 @@ function(add_swift_target target)
136
136
COMMAND
137
137
${CMAKE_COMMAND} -E copy ${AST_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR} /${target}
138
138
COMMAND
139
- ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR} /${target}/Resources
140
- COMMAND
141
- ${CMAKE_COMMAND} -E copy ${AST_RESOURCES} ${CMAKE_CURRENT_BINARY_DIR} /${target}/Resources )
139
+ ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR} /${target}/Resources )
140
+ foreach (resource ${AST_RESOURCES} )
141
+ add_custom_command (TARGET
142
+ ${target}
143
+ POST_BUILD
144
+ COMMAND
145
+ ${CMAKE_COMMAND} -E copy ${resource} ${CMAKE_CURRENT_BINARY_DIR} /${target}/Resources/ )
146
+ endforeach ()
142
147
else ()
143
148
add_custom_command (TARGET
144
149
${target}
You can’t perform that action at this time.
0 commit comments