File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ endfunction()
115
115
#
116
116
# Usage:
117
117
# add_sourcekit_library(name # Name of the library
118
- # [DEPENDS dep1 ...] # Libraries this library depends on
118
+ # [DEPENDS dep1 ...] # Libraries this library will be linked with
119
+ # [TARGET_DEPENDS dep1 ...] # Targets this library depends on
119
120
# [LLVM_COMPONENT_DEPENDS comp1 ...] # LLVM components this library depends on
120
121
# [INSTALL_IN_COMPONENT comp] # The Swift installation component that this library belongs to.
121
122
# [SHARED]
@@ -124,7 +125,7 @@ macro(add_sourcekit_library name)
124
125
cmake_parse_arguments (SOURCEKITLIB
125
126
"SHARED"
126
127
"INSTALL_IN_COMPONENT"
127
- "DEPENDS;LLVM_COMPONENT_DEPENDS"
128
+ "DEPENDS;TARGET_DEPENDS; LLVM_COMPONENT_DEPENDS"
128
129
${ARGN} )
129
130
set (srcs ${SOURCEKITLIB_UNPARSED_ARGUMENTS} )
130
131
@@ -169,6 +170,10 @@ macro(add_sourcekit_library name)
169
170
add_dependencies (${name} ${LLVM_COMMON_DEPENDS} )
170
171
endif (LLVM_COMMON_DEPENDS )
171
172
173
+ if (SOURCEKITLIB_TARGET_DEPENDS )
174
+ add_dependencies (${name} ${SOURCEKITLIB_TARGET_DEPENDS} )
175
+ endif (SOURCEKITLIB_TARGET_DEPENDS )
176
+
172
177
set (prefixed_link_libraries )
173
178
foreach (dep ${SOURCEKITLIB_DEPENDS} )
174
179
if ("${dep} " MATCHES "^clang" )
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ add_sourcekit_library(SourceKitSwiftLang
8
8
SwiftIndexing.cpp
9
9
SwiftLangSupport.cpp
10
10
SwiftSourceDocInfo.cpp
11
+ TARGET_DEPENDS swift-syntax-generated-headers
11
12
DEPENDS SourceKitCore swiftDriver swiftFrontend swiftClangImporter swiftIDE
12
13
swiftAST swiftMarkup swiftParse swiftParseSIL swiftSIL swiftSILGen
13
14
swiftSILOptimizer swiftIRGen swiftSema swiftBasic swiftSerialization
You can’t perform that action at this time.
0 commit comments