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.
2 parents 7c4d15f + 4179ceb commit 224fa2aCopy full SHA for 224fa2a
tools/SourceKit/cmake/modules/AddSwiftSourceKit.cmake
@@ -428,6 +428,13 @@ macro(add_sourcekit_xpc_service name framework_target)
428
429
add_dependencies(${framework_target} ${name})
430
431
+ # This is necessary to avoid having an rpath with an absolute build directory.
432
+ # Without this, such an rpath is added during build time and preserved at install time.
433
+ set_target_properties(${name} PROPERTIES
434
+ BUILD_WITH_INSTALL_RPATH On
435
+ INSTALL_RPATH "@loader_path/../lib"
436
+ INSTALL_NAME_DIR "@rpath")
437
+
438
if (SOURCEKIT_DEPLOYMENT_OS MATCHES "^macosx")
439
add_custom_command(TARGET ${name} POST_BUILD
440
COMMAND ${CMAKE_COMMAND} -E create_symlink "Versions/Current/XPCServices" XPCServices
0 commit comments