File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -202,8 +202,13 @@ function(add_properties_for_swift_modules target reldir)
202
202
set_property (TARGET ${target} APPEND PROPERTY BUILD_RPATH "${SWIFT_BUILD_RPATH} " )
203
203
set_property (TARGET ${target} APPEND PROPERTY INSTALL_RPATH "${SWIFT_INSTALL_RPATH} " )
204
204
elseif (CMAKE_SYSTEM_NAME MATCHES Windows )
205
- target_link_directories (${target} PRIVATE
206
- ${SWIFT_PATH_TO_SWIFT_SDK} /usr/lib/swift/Windows/x86_64 )
205
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES AMD64|amd64|x86_64 )
206
+ target_link_directories (${target} PRIVATE
207
+ ${SWIFT_PATH_TO_SWIFT_SDK} /usr/lib/swift/windows/x86_64 )
208
+ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES ARM64|arm64|aarch64 )
209
+ target_link_directories (${target} PRIVATE
210
+ ${SWIFT_PATH_TO_SWIFT_SDK} /usr/lib/swift/windows/aarch64 )
211
+ endif ()
207
212
endif ()
208
213
209
214
if (SWIFT_SWIFT_PARSER )
You can’t perform that action at this time.
0 commit comments