Skip to content

Commit 2f35ee2

Browse files
committed
[CMake] Install Swift modules into lib/swift/host.
1 parent 07f094b commit 2f35ee2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

cmake/modules/AddSwiftHostLibrary.cmake

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,15 @@ function(add_swift_host_library name)
5656
# Install this target
5757
install(TARGETS ${name}
5858
EXPORT SwiftSyntaxTargets
59-
ARCHIVE DESTINATION lib
60-
LIBRARY DESTINATION lib
59+
ARCHIVE DESTINATION lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY}
60+
LIBRARY DESTINATION lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY}
6161
RUNTIME DESTINATION bin
6262
)
63+
64+
# Install the module files.
65+
install(
66+
DIRECTORY ${module_base}
67+
DESTINATION lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY}
68+
FILES_MATCHING PATTERN "*.swift*"
69+
)
6370
endfunction()

0 commit comments

Comments
 (0)