We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97d4c18 + 5c81d67 commit 51805c4Copy full SHA for 51805c4
cmake/modules/SwiftModuleInstallation.cmake
@@ -46,11 +46,13 @@ function(_swift_testing_install_target module)
46
target_compile_options(Testing PRIVATE "-no-toolchain-stdlib-rpath")
47
48
if(APPLE)
49
- set_property(TARGET ${module} PROPERTY
50
- INSTALL_RPATH "@loader_path/..")
+ set_target_properties(${module} PROPERTIES
+ INSTALL_RPATH "@loader_path/.."
51
+ INSTALL_REMOVE_ENVIRONMENT_RPATH ON)
52
else()
53
- INSTALL_RPATH "$ORIGIN")
54
+ INSTALL_RPATH "$ORIGIN"
55
56
endif()
57
58
get_target_property(type ${module} TYPE)
0 commit comments