File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,16 @@ else()
60
60
add_library (TestingMacros SHARED )
61
61
62
62
target_link_options (TestingMacros PRIVATE "-no-toolchain-stdlib-rpath" )
63
- # Not setting RPATH means it requires all the dependencies are already loaded
64
- # in the process, because 'plugin' directory wouldn't contain any dependencies.
65
- set_property (TARGET TestingMacros PROPERTY INSTALL_RPATH )
66
63
set_property (TARGET TestingMacros PROPERTY BUILD_WITH_INSTALL_RPATH YES )
67
64
68
65
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
69
66
set (plugin_destination_dir "lib/swift/host/plugins/testing" )
67
+ set_property (TARGET TestingMacros PROPERTY INSTALL_RPATH )
70
68
else ()
71
69
set (plugin_destination_dir "lib/swift/host/plugins" )
70
+ # RPATH 'lib/swift/{system}' and 'lib/swift/host'
71
+ set_property (TARGET TestingMacros PROPERTY
72
+ INSTALL_RPATH "$ORIGIN/../../<LOWER_CASE:${CMAKE_SYSTEM_NAME} >;$ORIGIN/.." )
72
73
endif ()
73
74
74
75
install (TARGETS TestingMacros
You can’t perform that action at this time.
0 commit comments