Skip to content

Commit cc05c68

Browse files
committed
use PRIVATE_LINK_LIBRARIES
1 parent a9566fa commit cc05c68

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,14 +1656,9 @@ function(add_swift_library name)
16561656
# Add dependencies on the (not-yet-created) custom lipo target.
16571657
foreach(DEP ${SWIFTLIB_LINK_LIBRARIES})
16581658
if (NOT "${DEP}" STREQUAL "icucore")
1659-
# Avoid appending SDK kinds after sourcekit
1660-
if ("${DEP}" MATCHES "^sourcekitd")
1661-
add_dependencies(${VARIANT_NAME} "sourcekitd")
1662-
else()
16631659
add_dependencies(${VARIANT_NAME}
16641660
"${DEP}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}")
16651661
endif()
1666-
endif()
16671662
endforeach()
16681663

16691664
if (SWIFTLIB_IS_STDLIB AND SWIFTLIB_STATIC)

tools/SourceKit/tools/SwiftSourceKitClient/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ add_swift_library(swiftSwiftLang SHARED
99
SourceKitdResponse.swift
1010
SourceKitdUID.swift
1111

12-
LINK_LIBRARIES sourcekitd
12+
PRIVATE_LINK_LIBRARIES sourcekitd
1313
SWIFT_COMPILE_FLAGS ${EXTRA_COMPILE_FLAGS}
1414
LINK_FLAGS ${EXTRA_LINKER_FLAGS}
1515
SWIFT_MODULE_DEPENDS Foundation

0 commit comments

Comments
 (0)