We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a3058 commit a93bddfCopy full SHA for a93bddf
tools/SourceKit/CMakeLists.txt
@@ -197,6 +197,13 @@ macro(add_sourcekit_library name)
197
endif()
198
199
200
+ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
201
+ if(SOURCEKITLIB_SHARED)
202
+ set_target_properties(${name} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE)
203
+ set_target_properties(${name} PROPERTIES INSTALL_RPATH "$ORIGIN/../lib/swift/linux:/usr/lib/swift/linux")
204
+ endif()
205
206
+
207
if("${SOURCEKITLIB_INSTALL_IN_COMPONENT}" STREQUAL "")
208
if(SOURCEKITLIB_SHARED)
209
set(SOURCEKITLIB_INSTALL_IN_COMPONENT tools)
0 commit comments