File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,11 @@ function(add_swift_target target)
177
177
endif ()
178
178
179
179
if (AST_RESOURCES)
180
+ if (CMAKE_SYSTEM_NAME STREQUAL Windows)
181
+ set (resources_dir ${target} .resources)
182
+ else ()
183
+ set (resources_dir Resources)
184
+ endif ()
180
185
add_custom_command (TARGET
181
186
${target}
182
187
POST_BUILD
@@ -185,13 +190,13 @@ function(add_swift_target target)
185
190
COMMAND
186
191
${CMAKE_COMMAND} -E copy ${AST_OUTPUT} ${CMAKE_CURRENT_BINARY_DIR} /${target}
187
192
COMMAND
188
- ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR} /${target} /Resources )
193
+ ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR} /${target} /${resources_dir} )
189
194
foreach (resource ${AST_RESOURCES} )
190
195
add_custom_command (TARGET
191
196
${target}
192
197
POST_BUILD
193
198
COMMAND
194
- ${CMAKE_COMMAND} -E copy ${resource} ${CMAKE_CURRENT_BINARY_DIR} /${target} /Resources /)
199
+ ${CMAKE_COMMAND} -E copy ${resource} ${CMAKE_CURRENT_BINARY_DIR} /${target} /${resources_dir} /)
195
200
endforeach ()
196
201
else ()
197
202
add_custom_command (TARGET
You can’t perform that action at this time.
0 commit comments