Skip to content

Commit 7a8a484

Browse files
authored
Merge pull request #1122 from DougGregor/cmake-install-rpath
[CMake] Build libraries with only the install rpath.
2 parents bfb001b + 7159358 commit 7a8a484

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/AddSwiftHostLibrary.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ function(add_swift_host_library name)
5050
INTERFACE_INCLUDE_DIRECTORIES ${module_dir}
5151
)
5252

53+
set_target_properties(${name} PROPERTIES
54+
BUILD_WITH_INSTALL_RPATH YES
55+
)
56+
5357
# Install this target
5458
install(TARGETS ${name}
5559
EXPORT SwiftSyntaxTargets

0 commit comments

Comments
 (0)