Skip to content

Commit 5fafa69

Browse files
jmschonfeldiCharlesHu
authored andcommitted
Properly set rpath for FoundationEssentials/FoundationInternationalization
1 parent 144e69a commit 5fafa69

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Sources/FoundationEssentials/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ target_link_libraries(FoundationEssentials PUBLIC
4545
OrderedCollections
4646
_RopeModule)
4747

48+
set_target_properties(FoundationEssentials PROPERTIES
49+
INSTALL_RPATH "$ORIGIN")
50+
4851
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS FoundationEssentials)
4952
_install_target(FoundationEssentials)

Sources/FoundationInternationalization/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ target_link_libraries(FoundationInternationalization PRIVATE
2626
FoundationEssentials
2727
FoundationICU)
2828

29+
set_target_properties(FoundationInternationalization PROPERTIES
30+
INSTALL_RPATH "$ORIGIN")
31+
2932
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS FoundationInternationalization)
3033
_install_target(FoundationInternationalization)

0 commit comments

Comments
 (0)