This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,14 @@ if(ENABLE_SWIFT)
64
64
set (swift_dir swift_static )
65
65
endif ()
66
66
67
- set (INSTALL_TARGET_DIR "${INSTALL_LIBDIR} /${swift_dir} /${swift_os} " CACHE PATH "Path where the libraries will be installed" )
67
+ if (CMAKE_SYSTEM_NAME STREQUAL Darwin )
68
+ set (INSTALL_TARGET_DIR "${INSTALL_LIBDIR} /${swift_dir} /${swift_os} " CACHE PATH "Path where the libraries will be installed" )
69
+ set (INSTALL_TARGET_DIR_SWIFTMODULES "${INSTALL_LIBDIR} /${swift_dir} /${swift_os} /${swift_arch} " CACHE PATH "Path where the swiftmodules will be installed" )
70
+ else ()
71
+ set (INSTALL_TARGET_DIR "${INSTALL_LIBDIR} /${swift_dir} /${swift_os} /${swift_arch} " CACHE PATH "Path where the libraries will be installed" )
72
+ set (INSTALL_TARGET_DIR_SWIFTMODULES "${INSTALL_LIBDIR} /${swift_dir} /${swift_os} /${swift_arch} " CACHE PATH "Path where the swiftmodules will be installed" )
73
+ endif ()
74
+
68
75
set (INSTALL_DISPATCH_HEADERS_DIR "${INSTALL_LIBDIR} /${swift_dir} /dispatch" CACHE PATH "Path where the headers will be installed for libdispatch" )
69
76
set (INSTALL_BLOCK_HEADERS_DIR "${INSTALL_LIBDIR} /${swift_dir} /Block" CACHE PATH "Path where the headers will be installed for the blocks runtime" )
70
77
set (INSTALL_OS_HEADERS_DIR "${INSTALL_LIBDIR} /${swift_dir} /os" CACHE PATH "Path where the os/ headers will be installed" )
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ if(ENABLE_SWIFT)
263
263
${CMAKE_CURRENT_BINARY_DIR} /swift/Dispatch.swiftmodule
264
264
${CMAKE_CURRENT_BINARY_DIR} /swift/Dispatch.swiftdoc
265
265
DESTINATION
266
- ${INSTALL_TARGET_DIR} /${swift_arch } )
266
+ ${INSTALL_TARGET_DIR_SWIFTMODULES } )
267
267
268
268
if (BUILD_SHARED_LIBS )
269
269
set (library_kind SHARED )
You can’t perform that action at this time.
0 commit comments