Skip to content

Commit b27fd5f

Browse files
authored
Merge pull request #223 from compnerd/spelling-is-difficult
build: correct the OS directory on install
2 parents 7ae23ee + c612f30 commit b27fd5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,13 @@ add_custom_target(check-xctest
131131
XCTest
132132
USES_TERMINAL)
133133

134+
string(TOLOWER ${CMAKE_SYSTEM_NAME} SWIFT_OS)
135+
134136
install(FILES
135137
${CMAKE_CURRENT_BINARY_DIR}/swift/XCTest.swiftdoc
136138
${CMAKE_CURRENT_BINARY_DIR}/swift/XCTest.swiftmodule
137139
DESTINATION
138-
${CMAKE_INSTALL_FULL_LIBDIR}/swift/${CMAKE_SYSTEM_NAME}/${CMAKE_SYSTEM_PROCESSOR})
140+
${CMAKE_INSTALL_FULL_LIBDIR}/swift/${SWIFT_OS}/${CMAKE_SYSTEM_PROCESSOR})
139141
install(FILES
140142
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}XCTest${CMAKE_SHARED_LIBRARY_SUFFIX}
141143
DESTINATION

0 commit comments

Comments
 (0)