diff --git a/Sources/swift-format/CMakeLists.txt b/Sources/swift-format/CMakeLists.txt index 9ae9603e1..a9b58c374 100644 --- a/Sources/swift-format/CMakeLists.txt +++ b/Sources/swift-format/CMakeLists.txt @@ -33,4 +33,7 @@ target_link_libraries(swift-format PRIVATE SwiftParser SwiftSyntax) +set_target_properties(swift-format PROPERTIES + INSTALL_RPATH "$<$:@executable_path/../lib/swift/macosx;@executable_path/../lib/swift/host;@executable_path/../lib/swift/host/compiler>") + _install_target(swift-format)