Skip to content

Commit eae7f32

Browse files
committed
build: correct dependencies for SKSupport
The changes in swiftlang#945 changed the dependencies but did not correct them in the CMakeLists.txt resulting in a broken build. Resynchronise the dependencies across Package.swift and CMake.
1 parent 3ba15e1 commit eae7f32

File tree

8 files changed

+22
-20
lines changed

8 files changed

+22
-20
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ find_package(LLBuild QUIET)
2121
find_package(ArgumentParser CONFIG REQUIRED)
2222
find_package(SwiftCollections QUIET)
2323
find_package(SwiftSystem CONFIG REQUIRED)
24-
find_package(SwiftSyntax CONFIG REQUIRED)
24+
find_package(SwiftSyntax CONFIG REQUIRED)
2525
find_package(SwiftCrypto CONFIG REQUIRED)
2626

2727
include(SwiftSupport)

Sources/LSPLogging/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ add_library(LSPLogging STATIC
55
LoggingScope.swift
66
NonDarwinLogging.swift
77
OrLog.swift
8-
SplitLogMessage.swift
9-
)
8+
SplitLogMessage.swift)
109
set_target_properties(LSPLogging PROPERTIES
1110
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
1211
target_link_libraries(LSPLogging PRIVATE
13-
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>
14-
)
15-
12+
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)
1613
target_link_libraries(LSPLogging PUBLIC
17-
Crypto
18-
)
14+
Crypto)

Sources/LanguageServerProtocol/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,5 @@ add_library(LanguageServerProtocol STATIC
136136
set_target_properties(LanguageServerProtocol PROPERTIES
137137
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
138138
target_link_libraries(LanguageServerProtocol PUBLIC
139-
LSPLogging
140-
SKSupport
141-
TSCBasic
142139
$<$<NOT:$<PLATFORM_ID:Darwin>>:swiftDispatch>
143140
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

Sources/SKCore/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ target_link_libraries(SKCore PRIVATE
2020
BuildServerProtocol
2121
LanguageServerProtocol
2222
LanguageServerProtocolJSONRPC
23-
PackageModel
23+
LSPLogging
2424
SKSupport
25-
SourceKitD)
25+
SourceKitD
26+
PackageModel
27+
TSCBasic)

Sources/SKSupport/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ add_library(SKSupport STATIC
1616
set_target_properties(SKSupport PROPERTIES
1717
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
1818
target_link_libraries(SKSupport PRIVATE
19+
LanguageServerProtocol
20+
LSPLogging
1921
TSCBasic
2022
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

Sources/SKSwiftPMWorkspace/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set_target_properties(SKSwiftPMWorkspace PROPERTIES
66
target_link_libraries(SKSwiftPMWorkspace PRIVATE
77
BuildServerProtocol
88
LanguageServerProtocol
9-
SKCore)
9+
LSPLogging
10+
SKCore
11+
TSCBasic)
1012
target_link_libraries(SKSwiftPMWorkspace PUBLIC
1113
Build)

Sources/SourceKitLSP/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ set_target_properties(SourceKitLSP PROPERTIES
3838
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
3939
# TODO(compnerd) reduce the exposure here, why is everything PUBLIC-ly linked?
4040
target_link_libraries(SourceKitLSP PUBLIC
41-
Csourcekitd
4241
BuildServerProtocol
43-
IndexStoreDB
4442
LanguageServerProtocol
4543
LanguageServerProtocolJSONRPC
44+
LSPLogging
4645
SKCore
46+
SKSupport
4747
SKSwiftPMWorkspace
4848
SourceKitD
49+
IndexStoreDB
4950
SwiftSyntax::SwiftBasicFormat
5051
SwiftSyntax::SwiftDiagnostics
5152
SwiftSyntax::SwiftIDEUtils
5253
SwiftSyntax::SwiftParser
5354
SwiftSyntax::SwiftParserDiagnostics
54-
SwiftSyntax::SwiftSyntax
55-
)
55+
SwiftSyntax::SwiftSyntax)
5656
target_link_libraries(SourceKitLSP PRIVATE
5757
$<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>)
5858

Sources/sourcekit-lsp/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
add_executable(sourcekit-lsp
33
SourceKitLSP.swift)
44
target_link_libraries(sourcekit-lsp PRIVATE
5-
ArgumentParser
5+
LanguageServerProtocol
66
LanguageServerProtocolJSONRPC
77
SKCore
8-
SourceKitLSP)
8+
SKSupport
9+
SourceKitLSP
10+
ArgumentParser
11+
TSCBasic)
912
target_compile_options(sourcekit-lsp PRIVATE
1013
-parse-as-library)
1114
target_link_libraries(sourcekit-lsp PRIVATE

0 commit comments

Comments
 (0)