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()
115115
116116set_property (GLOBAL APPEND PROPERTY XCTest_EXPORTS XCTest)
117117get_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 ()
118122install (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}
121125 RUNTIME DESTINATION bin)
122126install (FILES
123127 ${CMAKE_CURRENT_BINARY_DIR} /swift/XCTest.swiftdoc
You can’t perform that action at this time.
0 commit comments