Skip to content

Commit 0f4c9b6

Browse files
uraimoktopley-apple
authored andcommitted
Fix install path
Signed-off-by: Kim Topley <[email protected]>
1 parent 895d13d commit 0f4c9b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ add_custom_command(TARGET dispatch POST_BUILD
221221
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:dispatch> .libs
222222
COMMENT "Copying libdispatch to .libs")
223223

224+
get_swift_host_arch(SWIFT_HOST_ARCH)
225+
224226
install(TARGETS
225227
dispatch
226228
DESTINATION
@@ -230,6 +232,6 @@ if(ENABLE_SWIFT)
230232
${CMAKE_CURRENT_BINARY_DIR}/swift/Dispatch.swiftmodule
231233
${CMAKE_CURRENT_BINARY_DIR}/swift/Dispatch.swiftdoc
232234
DESTINATION
233-
"${INSTALL_TARGET_DIR}/${CMAKE_SYSTEM_PROCESSOR}")
235+
"${INSTALL_TARGET_DIR}/${SWIFT_HOST_ARCH}")
234236
endif()
235237

0 commit comments

Comments
 (0)