File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,13 @@ endif()
115
115
116
116
set_property (GLOBAL APPEND PROPERTY XCTest_EXPORTS XCTest)
117
117
get_swift_host_arch(swift_arch)
118
+ set (SWIFT_INSTALL_SUBDIR "$<LOWER_CASE:${CMAKE_SYSTEM_NAME} >" )
119
+ if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows" )
120
+ set (SWIFT_INSTALL_SUBDIR "${SWIFT_INSTALL_SUBDIR} /${swift_arch} " )
121
+ endif ()
118
122
install (TARGETS XCTest
119
- ARCHIVE DESTINATION lib/swift$<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:_static>/$<LOWER_CASE: ${CMAKE_SYSTEM_NAME} >
120
- LIBRARY DESTINATION lib/swift$<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:_static>/$<LOWER_CASE: ${CMAKE_SYSTEM_NAME} >
123
+ ARCHIVE DESTINATION lib/swift$<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:_static>/${SWIFT_INSTALL_SUBDIR}
124
+ LIBRARY DESTINATION lib/swift$<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:_static>/${SWIFT_INSTALL_SUBDIR}
121
125
RUNTIME DESTINATION bin)
122
126
install (FILES
123
127
${CMAKE_CURRENT_BINARY_DIR} /swift/XCTest.swiftdoc
You can’t perform that action at this time.
0 commit comments