File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ if (SWIFT_BUILD_SWIFT_SYNTAX)
2525 SwiftSyntaxMacros
2626 SwiftSyntaxMacroExpansion
2727 SwiftCompilerPluginMessageHandling
28+ # Support for LSP
29+ SwiftIDEUtils
2830 )
2931
3032 # Install shared runtime libraries
@@ -56,6 +58,9 @@ if (SWIFT_BUILD_SWIFT_SYNTAX)
5658 COMPONENT swift-syntax-lib)
5759 endif ()
5860
61+ add_dependencies (swift-syntax-lib
62+ ${SWIFT_SYNTAX_MODULES} )
63+
5964 # Install Swift module interface files.
6065 foreach (module ${SWIFT_SYNTAX_MODULES} )
6166 set (module_dir "${module} .swiftmodule" )
@@ -64,6 +69,11 @@ if (SWIFT_BUILD_SWIFT_SYNTAX)
6469 DESTINATION "lib${LLVM_LIBDIR_SUFFIX} /swift/host/${module_dir} "
6570 COMPONENT swift-syntax-lib)
6671 endforeach ()
72+
73+ export (TARGETS ${SWIFT_SYNTAX_MODULES}
74+ NAMESPACE SwiftSyntax::
75+ FILE ${CMAKE_BINARY_DIR} /cmake/modules/SwiftSyntaxConfig.cmake
76+ EXPORT_LINK_INTERFACE_LIBRARIES)
6777endif ()
6878
6979add_subdirectory (APIDigester)
You can’t perform that action at this time.
0 commit comments