File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,16 @@ function(add_swift_host_library name)
66
66
)
67
67
68
68
get_target_property (lib_type ${name} TYPE )
69
- if (lib_type STREQUAL SHARED_LIBRARY AND CMAKE_SYSTEM_NAME STREQUAL Darwin)
70
- # Allow install_name_tool to update paths (for rdar://109473564)
71
- set_property (TARGET ${name} APPEND_STRING PROPERTY
72
- LINK_FLAGS " -Xlinker -headerpad_max_install_names" )
69
+ if (lib_type STREQUAL SHARED_LIBRARY)
70
+ if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
71
+ # Allow install_name_tool to update paths (for rdar://109473564)
72
+ set_property (TARGET ${name} APPEND_STRING PROPERTY
73
+ LINK_FLAGS " -Xlinker -headerpad_max_install_names" )
74
+ elseif (CMAKE_SYSTEM_NAME STREQUAL Linux)
75
+ # Make some room to update paths.
76
+ set_property (TARGET ${name} APPEND PROPERTY
77
+ INSTALL_RPATH ":::::::::::::::::::::::::::::::::::::::::::::::::::::::" )
78
+ endif ()
73
79
endif ()
74
80
75
81
# Install this target
You can’t perform that action at this time.
0 commit comments