Skip to content

Commit c612f30

Browse files
committed
build: correct the OS directory on install
Convert the OS name to lower case as is the convention. This installs the content to the right location to permit use from an installed package.
1 parent 7ae23ee commit c612f30

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)