Skip to content

Commit 546a646

Browse files
committed
[CMake] Correctly order the arguments when setting up sourcekitdInProc_Static.
The shared arguments should come first, followed by the headers. Otherwise, things don't work correctly, and CMake thinks there are no sources in sourcekitdInProc_Static. This is for <rdar://problem/85511244>.
1 parent 63f355f commit 546a646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/SourceKit/tools/sourcekitd/bin/InProc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ target_link_libraries(sourcekitdInProc PRIVATE
5555
# that is in the same directory as the swift library directory.
5656
if (SOURCEKITD_BUILD_STATIC_INPROC)
5757
add_sourcekit_library(sourcekitdInProc_Static
58+
${sourcekitdInProc_args}
5859
HEADERS
5960
${SOURCEKITD_SOURCE_DIR}/include/sourcekitd/sourcekitd.h
60-
${sourcekitdInProc_args}
6161
)
6262
target_link_libraries(sourcekitdInProc_Static PRIVATE
6363
SourceKitSwiftLang

0 commit comments

Comments
 (0)