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 @@ -229,8 +229,13 @@ function(add_properties_for_swift_modules target reldir)
229
229
set_property (TARGET ${target} APPEND PROPERTY BUILD_RPATH "${SWIFT_BUILD_RPATH} " )
230
230
set_property (TARGET ${target} APPEND PROPERTY INSTALL_RPATH "${SWIFT_INSTALL_RPATH} " )
231
231
elseif (CMAKE_SYSTEM_NAME MATCHES Windows)
232
- target_link_directories (${target} PRIVATE
233
- ${SWIFT_PATH_TO_SWIFT_SDK} /usr/lib/swift/Windows/x86_64)
232
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES AMD64|amd64|x86_64)
233
+ target_link_directories (${target} PRIVATE
234
+ ${SWIFT_PATH_TO_SWIFT_SDK} /usr/lib/swift/windows/x86_64)
235
+ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES ARM64|arm64|aarch64)
236
+ target_link_directories (${target} PRIVATE
237
+ ${SWIFT_PATH_TO_SWIFT_SDK} /usr/lib/swift/windows/aarch64)
238
+ endif ()
234
239
endif ()
235
240
236
241
if (SWIFT_SWIFT_PARSER)
You can’t perform that action at this time.
0 commit comments