File tree 4 files changed +14
-18
lines changed
4 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,11 @@ set(SourceKitSupport_sources
8
8
UIDRegistry.cpp
9
9
)
10
10
11
- set (SOURCEKIT_SUPPORT_DEPEND swiftBasic swiftSyntax clangBasic clangRewrite)
12
- if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
13
- list (APPEND SOURCEKIT_SUPPORT_DEPEND dispatch BlocksRuntime)
14
- endif ()
15
-
16
11
add_sourcekit_library(SourceKitSupport
17
12
${SourceKitSupport_sources}
18
- LINK_LIBS ${SOURCEKIT_SUPPORT_DEPEND}
13
+ LINK_LIBS swiftBasic swiftSyntax clangBasic clangRewrite
19
14
)
15
+ if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
16
+ target_link_libraries (SourceKitSupport INTERFACE dispatch BlocksRuntime)
17
+ endif ()
18
+
Original file line number Diff line number Diff line change 4
4
set (SOURCEKITD_TEST_LINK_LIBS sourcekitd)
5
5
endif ()
6
6
7
- if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
8
- set (SOURCEKITD_TEST_LINK_LIBS ${SOURCEKITD_TEST_LINK_LIBS} dispatch)
9
- endif ()
10
-
11
7
add_sourcekit_executable(complete-test
12
8
complete-test .cpp
13
9
LINK_LIBS ${SOURCEKITD_TEST_LINK_LIBS}
14
10
LLVM_COMPONENT_DEPENDS support option coverage lto
15
11
)
12
+ if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
13
+ target_link_libraries (complete-test PRIVATE dispatch BlocksRuntime)
14
+ endif ()
16
15
17
16
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
18
17
set_target_properties (complete-test
Original file line number Diff line number Diff line change @@ -8,15 +8,14 @@ if(HAVE_UNICODE_LIBEDIT)
8
8
set (SOURCEKITD_REPL_LINK_LIBS sourcekitd)
9
9
endif ()
10
10
11
- if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
12
- set (SOURCEKITD_REPL_LINK_LIBS ${SOURCEKITD_REPL_LINK_LIBS} dispatch)
13
- endif ()
14
-
15
11
add_sourcekit_executable(sourcekitd-repl
16
12
sourcekitd-repl.cpp
17
13
LINK_LIBS ${SOURCEKITD_REPL_LINK_LIBS} edit
18
14
LLVM_COMPONENT_DEPENDS support coverage lto
19
15
)
16
+ if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
17
+ target_link_libraries (sourcekitd-repl PRIVATE dispatch BlocksRuntime)
18
+ endif ()
20
19
21
20
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
22
21
set_target_properties (sourcekitd-repl
Original file line number Diff line number Diff line change 8
8
set (SOURCEKITD_TEST_LINK_LIBS sourcekitd)
9
9
endif ()
10
10
11
- if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
12
- set (SOURCEKITD_TEST_LINK_LIBS ${SOURCEKITD_TEST_LINK_LIBS} dispatch)
13
- endif ()
14
-
15
11
add_sourcekit_executable(sourcekitd-test
16
12
sourcekitd-test .cpp
17
13
TestOptions.cpp
18
14
LINK_LIBS ${SOURCEKITD_TEST_LINK_LIBS} SourceKitSupport
19
15
clangRewrite clangLex clangBasic
20
16
LLVM_COMPONENT_DEPENDS core support option coverage lto
21
17
)
18
+ if (SOURCEKIT_NEED_EXPLICIT_LIBDISPATCH)
19
+ target_link_libraries (sourcekitd-test PRIVATE dispatch BlocksRuntime)
20
+ endif ()
22
21
23
22
add_dependencies (sourcekitd-test sourcekitdTestOptionsTableGen)
24
23
You can’t perform that action at this time.
0 commit comments